P
PGK
Hi all,
Assuming sizeof on expressions is valid, how does a cpp compiler
evaluate something like:
char c;
std::cout << sizeof (c+c);
For this, GCC 4.3.2 gives me a result of 4. Is this result always ==
sizeof(int)?
Is this correct: sizeof (e) is the largest sizeof from all the
individual terms of e, rounded up to sizeof (int)?
Cheers,
-Graham
Assuming sizeof on expressions is valid, how does a cpp compiler
evaluate something like:
char c;
std::cout << sizeof (c+c);
For this, GCC 4.3.2 gives me a result of 4. Is this result always ==
sizeof(int)?
Is this correct: sizeof (e) is the largest sizeof from all the
individual terms of e, rounded up to sizeof (int)?
Cheers,
-Graham