#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 to use C++?
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
When did c++ add stl?
What is stl language?
How connect plc and pc through software
Is stl open source?
write a program to convert a decimal number in to its equivalent binary number?
What is a stl vector?
Who created stl?
Can we use stl in coding interviews?
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
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What is the stl, standard template library?
How do you convert stl to steps?
what is template and type convertion