main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / gita
the answer is 10,16.
because x=x++;
means first assign after that that is incremented.
in case of y=++y;
first increment operation is performed. after that assigned.
| Is This Answer Correct ? | 18 Yes | 4 No |
Post New Answer View All Answers
What is anagram in c?
How many types of errors are there in c language? Explain
Can a variable be both static and volatile in c?
Explain what is the difference between a string and an array?
What is .obj file in c?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What do you mean by dynamic memory allocation in c?
What is the purpose of clrscr () printf () and getch ()?
How can I implement sets or arrays of bits?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
When should you not use a type cast?
What is #line?
What is the right type to use for boolean values in c?
Can we initialize extern variable in c?
what is different between auto and local static? why should we use local static?