#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
In what scenario does the Logical file and Physical file being used?
What is stl language?
Define stl.
Is stl open source?
Who wrote stl?
What is the use of stl?
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How does an stl file work?
What does stl mean in slang?
sir please send me bpcl previous question papers
What is stl in oop?
How do you convert stl to steps?
What is stl stand for?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.