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 are the uses of a pointer?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What is calloc in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
How can I find the modification date and time of a file?
An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above
What is variable declaration and definition in c?
How do we print only part of a string in c?
Write a program to print all permutations of a given string.
What is difference between array and pointer in c?
What is the difference between malloc() and calloc()?
Can include files be nested? How many levels deep can include files be nested?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Why c is called procedure oriented language?