main()
{
int i=0;
while(+(+i--)!=0)
i-=i++;
printf("%d",i);
}
Answer Posted / rayan
ans is -1.
Initially i == 0, when it enters into while loop
while(+(+i--)!0)
in 1st iteration i value ll be 0 only due to post decrement
operator.
in second iteration as i gets its post decremented value n
becomes -1 & -1 ~= 0 condition gets true & while loop breaks.
here + operator in the loop is doing ntg.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What's the best way of making my program efficient?
How can I insert or delete a line (or record) in the middle of a file?
Why calloc is better than malloc?
Write a program to generate the Fibinocci Series
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
The difference between printf and fprintf is ?
What is the heap in c?
How many identifiers are there in c?
program for reversing a selected line word by word when multiple lines are given without using strrev
What is volatile variable in c?
What is p in text message?
What is void c?
Explain enumerated types.
What are the main characteristics of c language describe the structure of ac program?
What is the total generic pointer type?