#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 / vasanth
since macro is expanded like (x++ * x++ * x++) = (3 * 4 *
5) => a = 60
and final value of b = 5++ => 6
ans : 60, 6
| Is This Answer Correct ? | 32 Yes | 15 No |
Post New Answer View All Answers
Why should a c++ programmer be interested in stl?
How is stl different from c++ standard library?
Is string part of stl?
When did c++ add stl?
Do you like to Submit Questions in Bulk under Same Category?? Then use our Bulk ListerDo you like to Submit Questions in Bulk under Same Category?? Then use our Bulk Lister
To modify an, existing worksheet. What steps are involved for: 1. Inserting and deleting rows and columns. 2. Printing cell formulas 3Jld displayed values 3. Using the page setup command
Is stl part of c++ standard?
What is stl stand for?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
please visit this site you'll find my question this is my homework please answer it if you can http://easyscience.org/ib/lofiversion/index.php/t36168.html
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What is meant by stl in c++?
Who wrote stl?
How connect plc and pc through software
how to use C++?