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

#define CUBE(x) (x*x*x)
main()
{ int a,b=3;
a=cube(b++);
printf("%d %d",a,b);
}
What should be the value of a and b? My calc a=4 but syst
a=6 how pls tell me if you know it?

Answer Posted / pratap keshari

The output will be 27 6

b++ will be replaced as 3++ in the macro and these values
will be evaluated after the macro execution.Hence first it
will evaluate to 3's cube and then increment 3 three times

Is This Answer Correct ?    10 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In what scenario does the Logical file and Physical file being used?

2774


What is stl language?

1080


Define stl.

1216


Is stl open source?

1089


Who wrote stl?

1080


What is the use of stl?

1043


Describe the My Computer and My Documents folders; identify the elements that are present in every Window.

2444


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2589


How does an stl file work?

1094


What does stl mean in slang?

1052


sir please send me bpcl previous question papers

2332


What is stl in oop?

1164


How do you convert stl to steps?

1105


What is stl stand for?

1162


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3320