64/square(4)



64/square(4) ..

Answer / sorab

#define square(x) x*x
main()
{
int i;
i = 64/square(4);
printf("%d",i);
}
the macro call square(4) will substituted by 4*4 so the expression becomes i = 64/4*4 . Since / and * has equal priority the expression will be evaluated as (64/4)*4 i.e. 16*4 = 64

Is This Answer Correct ?    9 Yes 0 No

Post New Answer

More C Interview Questions

Hi Every one...........I have been selected for the SBI Clerk. But i m one month Pregnanat. So anyone please suggest me, is they take any objection on my joining .

4 Answers   State Bank Of India SBI,


Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A

1 Answers  


Explain setjmp()?

1 Answers  


What is the code in while loop that returns the output of given code?

1 Answers  


How the processor registers can be used in C ?

7 Answers   HP,


What is the use of typedef in c?

1 Answers  


What is extern storage class in c?

1 Answers  


how to swap four numbers without using fifth variable?

2 Answers  


what is diognisis?

1 Answers  


What is define c?

1 Answers  


What is a Genralised LInked List?? Please give a detailed explation of it..

1 Answers  


Is it better to bitshift a value than to multiply by 2?

1 Answers  


Categories