#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 / prabhaaa
since macro is expanded like (x++ * x++ * x++) = (3 * 4 *
5) ..here the value increments in each of its position. first [3 *3++*(3++)++] = [3*4*4++]
= [3*4*5]
a = 60
and here b increments three times .3++=4, 4++=5 ,5++=6.
final value of b = 5++ => 6
ans : 60, 6
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is a standard template library (stl)?
In what scenario does the Logical file and Physical file being used?
Who wrote stl?
What is stl language?
What are stl algorithms?
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
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
What does stl stand for in basketball?
What are the components of stl?
What are the different types of stl containers?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
How do I convert a stl file?
Who created stl?
a program using one dimensional array that searches a number if it is found on the list of given input numbers given by the user and locate its exact location in the list.
What does stl mean in slang?