| |
GeekInterview.com > Placement Papers > TCS > C
| Print | |
Question: what is the output of following program? #include void main() { printf("%d%d",sizeof(NULL),sizeof(" ")); }
|
| February 02, 2007 01:22:30 |
#2 |
| Arwa Patel |
Member Since: Visitor Total Comments: N/A |
RE: what is the output of following program?#inc... |
The answer is 44..
As the space is an empty character and one the compiler counts one more character for the Null character constant '/0' And the space that Null takes in memory is 4 bytes same as int, but this value depends on the Compiler that you use |
| |
Back To Question | |