#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 ? | 31 Yes | 15 No |
Post New Answer View All Answers
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
How is stl different from c++ standard library?
How connect plc and pc through software
What is a list in c++ stl?
What is a stl vector?
Define 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 the use of stl?
Who wrote stl?
What is stl in oop?
How stl is different from the c++ standard library?
Can we use stl in coding interviews?
how to making game in c++ ?
What is stl stand for?
What is stl language?