#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 / riadh khedhiri

the output on a my box:
Linux 2.6.32-22-generic-pae #36-Ubuntu SMP Thu Jun 3 23:14:23 UTC 2010 i686 GNU/Linux with gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3

a = 27
b = 6

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I convert a stl file?

554


Explain stl.

898


how can u do connectivity in c++ language? plz send me connectivity code in c++ ?

1882


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

1880


What is stl in c++ with example?

628






What is stl stack?

653


What is stl stand for?

727


Who wrote stl?

668


What is a stl vector?

620


What is stl language?

666


write a program to convert a decimal number in to its equivalent binary number?

2069


i wanted to know about questions about c,c++ , which is required for placements.... im a fresher

1692


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

2850


How connect plc and pc through software

1908


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2083