What will be the output of
x++ + ++x?
Answer Posted / debashree
#include<stdio.h>
int main()
{
int x=1,y;
y=x++ + ++x;
printf("y=%d\n",y);
return 0;
}
o/p->
y=4
| Is This Answer Correct ? | 17 Yes | 7 No |
Post New Answer View All Answers
Explain the Difference between the New and Malloc keyword.
Can we access the array using a pointer in c language?
Is c is a low level language?
What are pragmas and what are they good for?
Is array name a pointer?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
What is #define size in c?
What is a buffer in c?
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
What are actual arguments?
Explain how do you sort filenames in a directory?
How reliable are floating-point comparisons?
Explain the difference between ++u and u++?
why do some people write if(0 == x) instead of if(x == 0)?
Why is extern used in c?