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


Please Help Members By Posting Answers For Below Questions

Why #include is used in c language?

584


How can you convert integers to binary or hexadecimal?

604


what is the role you expect in software industry?

1643


what is uses of .net

1260


Why do we use return in c?

558






What are the storage classes in C?

616


What is the general form of function in c?

605


Why pointers are used?

625


What are qualifiers and modifiers c?

535


How can I make it pause before closing the program output window?

564


Who developed c language and when?

571


what is a constant pointer in C

659


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......

1396


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?

649


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2972