#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
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
What are the different types of stl containers?
Is string part of stl?
Can we use stl in coding interviews?
Define stl.
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
how to use C++?
What is the use of stl?
What does stl stand for in basketball?
What are the various types of stl containers?
Why should a c++ programmer be interested in stl?
How does an stl file work?
Is there any error below, its a code to delete all entires from a map #include
What is meant by stl in c++?
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher