main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / subha raman
the answer is 10 and 16..
in the case of postfix,the value will be displayed first
[that is the difference between postfix and prefix]..
when the main function is again called and the value is
displayed it will b'com..11 and 17..
| Is This Answer Correct ? | 18 Yes | 15 No |
Post New Answer View All Answers
Are pointers really faster than arrays?
What is c language in simple words?
What are volatile variables in c?
What is the difference between c and python?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is #error and use of it?
formula to convert 2500mmh2o into m3/hr
How can variables be characterized?
Tell me when is a void pointer used?
What is the use of pragma in embedded c?
Why malloc is faster than calloc?
What is multidimensional arrays
How can I write a function that takes a format string and a variable number of arguments?
How can I get the current date or time of day in a c program?
What is the purpose of void in c?