main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answers were Sorted based on User's Feedback
Answer / sateesndaruh varma ba
x=x++ it means the x value is first assignto x and then increment by 1
so here in this given value of x=10
it become" x= 11" in output
y=++y it means pre increment so first y value is incremented and than it will assignto y
finally y=16
| Is This Answer Correct ? | 2 Yes | 5 No |
Answer / ankit
11 16 is correct ..
value of x is incremented and is saved in memeory and at
the time of display it will be 11,
as in case of y it will be incremented and will store the
incremented value to be displayed for y.
| Is This Answer Correct ? | 0 Yes | 3 No |
what is c language?
Under what circumstances does a name clash occur?
Difference between null pointer and dangling pointer?
Toggle nth bit in a given integer - num
State the difference between realloc and free.
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output?
#define MAX 3 main() { printf("MAX = %d ",MAX ); #undef MAX #ifdef MAX printf("Vector Institute”); #endif }
I didn't count the ducks that I saw in line, but I do remember that one duck was in front of two ducks, another duck behind two ducks. How many ducks did I see?
What is the use of sizeof?
What are identifiers and keywords in c?
Why ca not I do something like this?
what is c