main()
{
int x=10,y=15;
x=x++;
y=++y;
printf("%d %d\n",x,y);
}
output??
Answer Posted / 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 |
Post New Answer View All Answers
Tell me the use of bit field in c language?
How do we declare variables in c?
Do you know the purpose of 'register' keyword?
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
What is the best style for code layout in c?
What is difference between %d and %i in c?
Is c procedural or functional?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
cavium networks written test pattern ..
What is the difference between text and binary i/o?
Why array is used in c?
what do you mean by enumeration constant?
Which are low level languages?
What is #line in c?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .