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
What is the difference between array and pointer?
What is the process of writing the null pointer?
What is the difference between null pointer and wild pointer?
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
Is that possible to store 32768 in an int data type variable?
What are predefined functions in c?
What is malloc and calloc?
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
What functions are used for dynamic memory allocation in c language?
Here is a good puzzle: how do you write a program which produces its own source code as output?
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.
What is scope and lifetime of a variable in c?
What is a sequential access file?
What is the value of c?
What is the sizeof () a pointer?