#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
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
What is stl in c++ with example?
What are the symptoms of stl?
What is meant by stl in c++?
Can we use stl in coding interviews?
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
Is there any error below, its a code to delete all entires from a map #include
What are the various types of stl containers?
What is a stl vector?
how to making game in c++ ?
What is stl language?
What is the use of stl?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is a standard template library (stl)? What are the various types of stl containers?
What is the stl, standard template library?