main()
{
int x=20,y=35;
x = y++ + x++;
y = ++y + ++x;
printf("%d %d\n",x,y);
}
what is the output?
Answer Posted / yusuf
x++ means we have to assign the value and then the
increment comes to light.......so
x=y++ + x++;
=35 + 20;
=55
now the value of x=55 then
y=37 + 56;
=93
Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
Why #include is used in c language?
How can you convert integers to binary or hexadecimal?
what is the role you expect in software industry?
what is uses of .net
Why do we use return in c?
What are the storage classes in C?
What is the general form of function in c?
Why pointers are used?
What are qualifiers and modifiers c?
How can I make it pause before closing the program output window?
Who developed c language and when?
what is a constant pointer in C
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor