#include<stdio.h>
int main(){
int a=5;
printf("%d %d %d",a++,a++,++a);
return 0;
}..please explain me output 7 6 8..Thnx in advance

Answer Posted / abhijeet ankush gate rank 416

correct output is 766
explaination
printf function is right associative and starts reading from
right which is ++a.
in ++a value is 1st incremented and then printed
in a++ value is 1st printed and then incremented...

Is This Answer Correct ?    10 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

where is the first vidhyalaya of physically handicaped

1462


computer is male or female.....???

1451


What is your Job Profile in IT feild.

1666


What is the meaning of "co relation" and what is the value of "co relation" in the performance testing environment.

1555


Key difference between ip10 and ip20 of ceragon equipment?

4557






I am getting the following error,when I am running the script, Cannot identify the specified item of the regions object. Confirm that the specified item is included in the object's item collection. My Script: Itemname=Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").GetItem(i+1) Print Itemname Browser("MLSListings.com").Page ("MLSListings.com").WebList("regions").Select "Itemname" Any Help? Thanks, Uma

1753


pls send me the e-book for verbal and non verbal reasoning of R S aggarwall

1712


How to select the total numbers of fire extinguisher installed in a room ?

1492


how to prepare for an written exam for any type of company?

1906


WRITE A C PROGRAM TO REVERSE THE LINK LIST WITHOUT CREATING NEW LIST?

3264


I APPLIED SBIPO EXAM PLZ SEND ME THE INTERVIEW QUESTIONS AND GD TOPICS AND WRITTENEXAM QUESTIONS

1639


how to use photoshop and some related websites?

1620


I am looking for NIC Scientific Officer / Engineer-SB (Programmer)Sample papers or any portion of questions/ syllabus plz, send me on sengupta.pranab@gmail.com. Regards PRANAB

1939


difference between java programming and c programming??

2411


5. Tell me about a time you were able to successfully deal with another person even when that individual may not have personally liked you (or vice versa).

1573