#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 / alan

it depends on the compiler

(x++ * x++ * x++) ==>correct.

the question is when x++?
Note the second time x++, it use the value of x or x++ of
the first x++?

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are stl algorithms?

627


What is stl language?

682


What is stl stack?

665


write a program that will accept a number and print.its equivalent in words the maximum input number is 9999

2504


Describe how to safeguard a system through acquisition of an antivirus Program and systematic backup.

1648






How is stl different from c++ standard library?

748


What is a stl vector?

628


Who created stl?

656


What is stl in oop?

682


What does stl stand for in basketball?

649


How connect plc and pc through software

1923


Is stl part of c++ standard?

647


help me i need a c++ program which takes sequesnce of characters and outputed sequence of their token taypes, work same compiler in lexical analysis phase

1885


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

2865


What does stl mean in slang?

653