#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 connect plc and pc through software
Is there any error below, its a code to delete all entires from a map #include
In what scenario does the Logical file and Physical file being used?
how to use C++?
What are the various types of stl containers?
How stl is different from the c++ standard library?
How is stl different from c++ standard library?
What does stl stand for in basketball?
What is the use of stl?
totoo po ba ang manga aliens!
sir please send me bpcl previous question papers
What is a standard template library (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 stl stand for?
What two types of containers does the stl provide?