sizeof(char)
?
sizeof(int)
?
sizeof(double)
?
x
in
class A { protected: static int x; };
double a, *b, **c; b = &a; c = & b; **c = 1.2;
void p(const int &x); p(3);
double
that takes a value (of any
type) and returns that value added to itself without changing the
value. Write a fragment of code applying double
to some
declared, initialize variable, where the type of the variable is in
namespace std
.
names
that is an
array of pointers to std::string
values. Allow up to 20
names. Set the first name to your own name, but all of the rest should
be nullptr
.
struct
to create an array that is passed by
value.
void dosomething(int
nums[]);
and write int s = sizeof(nums);
in the
body. What does this set s
to? Is there a way to change
the declaration of nums
so s
gets a different
value?
auto x = a;
vs. x = b;
.
while ( ! eof ) { read; process }is a bad idea
doit
if doit
reads files p
and q
and generates r