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


Please Help Members By Posting Answers For Below Questions

What is the difference between array and pointer?

571


What is the process of writing the null pointer?

611


What is the difference between null pointer and wild pointer?

642


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1848


Is that possible to store 32768 in an int data type variable?

694






What are predefined functions in c?

570


What is malloc and calloc?

578


Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)

817


What functions are used for dynamic memory allocation in c language?

604


Here is a good puzzle: how do you write a program which produces its own source code as output?

602


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2273


What is scope and lifetime of a variable in c?

582


What is a sequential access file?

650


What is the value of c?

576


What is the sizeof () a pointer?

552