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
Where does the name "C" come from, anyway?
Explain how are 16- and 32-bit numbers stored?
will u please send me the placement papers to my mail???????????????????
How many levels of pointers have?
Explain function?
Explain the red-black trees?
What’s the special use of UNIONS?
What are conditional operators in C?
What is the time and space complexities of merge sort and when is it preferred over quick sort?
What is echo in c programming?
What is data structure in c and its types?
What is the difference between text and binary i/o?
Is it possible to have a function as a parameter in another function?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Explain zero based addressing.