#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 / jugal
Sorry guys,
my bad,
i thought it was
#define sqr(x) ((x)*(x))
the output wud be 5
but still the value of will be 2 only
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
When can a far pointer be used?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What are the types of type specifiers?
What are the three constants used in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
Why are algorithms important in c program?
How to throw some light on the b tree?
What is the use of void pointer and null pointer in c language?
What kind of structure is a house?
Write a program to print factorial of given number using recursion?
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
Why c is a mother language?
How can I get back to the interactive keyboard if stdin is redirected?
How do you use a 'Local Block'?
What are the features of the c language?