#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 / karthik p b
a will be 27 and b will be 6.
since the cube root of 3 is assigned to 'a' it will contain the value 27, and after this 'b' will gets incremented 3 times (x++ * x++ * x++) hence 'b' will become 6
so a = 27 b= 6
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
How stl is different from the c++ standard library?
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
draw a flowchart that accepts two numbers and checks if the first is divisible by the second.
What is stl in c++ with example?
What are the components of stl?
Can we use stl in coding interviews?
Why should a c++ programmer be interested in stl?
What is the stl, standard template library?
Who created stl?
how can u do connectivity in c++ language? plz send me connectivity code in c++ ?
How connect plc and pc through software
Is stl open source?
How does an stl file work?
What is a stl vector?
how to making game in c++ ?