Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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

if a customer's blackberry stopped syncing their calendar wirelessly what would you do?if a customber deleted mail from his blackberry but it did delete from his mailbox how would ypu resolve this

2980


sir , i am prparing for IOCL engineergin post please send me the old placement papers

1994


I am an Electrical engineering ( electrical back round ) ,can i get hvac Water system design details to easy understand ,i am working past 15years in Pharmaceuticals company with Engineering depart.

1286


What experience have you had in working with field forces?

1865


c# code, vb.net code language parity refers to what?

3456


Suppose you want to form a conceptual model of UML.What elements would you require for this purpose?

2045


hi... i just want to know that how could join the AAI with an B.E back ground??? please help me out.

1967


what are the differences between one dimensional ram and two dimensional ram?

3256


funtionalities of loadining and linking

2004


15. What is your Future Plans for the Company if Permanently Employed?

3788


what is need of interface. what is the diff b/w interface and abstract class

1916


what is the difference between verification and validation

2776


i possess a little knowledge of core java . so is it will be difficult for me to start advanced java?

1885


Explain diffrent parts of an instruction format.

3527


Sketch a velocity time graph for a skydiver jumping out of a plane.

1188