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 are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
what is use of malloc and calloc?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is the difference between typedef struct and struct?
What is spark map function?
Write a C program to count the number of email on text
What is 1f in c?
When should structures be passed by values or by references?
What are shell structures used for?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What's the best way of making my program efficient?
What is the difference between text and binary i/o?
Explain how are portions of a program disabled in demo versions?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
Is stack a keyword in c?