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
What is the difference between scanf and fscanf?
How do I swap bytes?
Is a house a shell structure?
A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream
write a program to create a sparse matrix using dynamic memory allocation.
What are multidimensional arrays?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How are structure passing and returning implemented?
Explain how do you list a file’s date and time?
Why static variable is used in c?
What are data structures in c and how to use them?
What are multibyte characters?
Which is the memory area not included in C program? give the reason
All technical questions