#include <stdio.h>
#define sqr(x) (x*x)
int main()
{
int x=2;
printf("value of x=%d",sqr(x+1));
}
What is the value of x?
Answer Posted / gg
Ans : 5
I agree with Divakar ans & similar answers.
sqr(x+1)=x+1*x+1=2+1*2+1=5, but not 2*2+1
| Is This Answer Correct ? | 17 Yes | 0 No |
Post New Answer View All Answers
What are local static variables?
Where is c used?
How can I split up a string into whitespace-separated fields?
What do you mean by dynamic memory allocation in c?
Where are local variables stored in c?
What is string length in c?
WRITE A PROGRAM TO MERGE TWO SORTED ARRAY USING MERGE SORT TECHNIQUE..
What is structure data type in c?
Define the scope of static variables.
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is operator promotion?
Why is python slower than c?
What is c token?
How can I make it pause before closing the program output window?
What is c variable?