An interview question in C

Me@earth's Avatar
Go4Expert Member
What is the output of printf("%d")?
0
Darkness1337's Avatar, Join Date: Mar 2007
Ambitious contributor
nothin?
or the value of d?

http://www.cplusplus.com/reference/c...io/printf.html
http://computer.howstuffworks.com/c6.htm
lol
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Garbage
0
Me@earth's Avatar
Go4Expert Member
Quote:
Originally Posted by shabbir
Garbage
Ya i too vote for garbage value only..But some of my friends told me that it depends on the compiler is that so???
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by Me@earth
Ya i too vote for garbage value only..But some of my friends told me that it depends on the compiler is that so???
Not computer but compiler.