005# puzzle on c (output )
By dholey
@dholey (1383)
India
February 4, 2007 4:54am CST
ITS ANOTHER GOOD PUZZLE , PLEASE TELL ME THE OUTPUT AS WELL AS THE REASON FOR THAT OUTPUT ...... AND PLEASE DO CHECK COMMENTS ADDED TO YOUR RESPONSE ......
void main()
{
int i=3;
int j;
j= sizeof(++i + ++i);
printf("\n %d %d",i,j);
}
2 responses
@dholey (1383)
• India
4 Feb 07
how amny of you thing the lifeless' answeris correct (he said it was so easy) .... just asking you... because i know lifeless is not a programmer and he just added one post .... fortunaitly he had c++ on his pc so he executed the program and said it is so simple.... i want to ask him only why i is not 5 ...(if he knows anything like unary operator or working of pre / post increment/ decrements )
i know he can not explain ... he just came to add one post nothing else ... and i am annoyed .....
if he has a little knowledge then he must have also given the answer to the next puzzle ... but he cant explain so ... here he is ........ i hate imposters .. pretenders ... so i hate you ...