#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
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
how to use C++?
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
what is template and type convertion
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
How do I convert a stl file?
What is stl stand for?
What are the components of stl?
When did c++ add stl?
Is stl open source?
What is stl in c++ with example?
Who wrote stl?
What do stl stand for?
Can we use stl in coding interviews?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?