main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf("%d",i);
}
Answer Posted / furquan
Here what happens is :
while(+(+i--)!=0)
i = 0
so 0 != 0 is false hence condition for while fails. Now
there is also a post decrement operator. So value of i turns
out to be -1. and that is which is printed.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Are bit fields portable?
What is exit() function?
How will you delete a node in DLL?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is unsigned int in c?
How are Structure passing and returning implemented by the complier?
Are global variables static in c?
Explain About fork()?
How to get string length of given string in c?
Difference between Function to pointer and pointer to function
What is the difference between the local variable and global variable in c?
How can variables be characterized?
What is the use of function overloading in C?
What is the difference between near, far and huge pointers?
string reverse using recursion