#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
given post order,in order construct the corresponding binary tree
c program to compute AREA under integral
Why is c faster?
Explain #pragma statements.
How do you initialize pointer variables?
What is a structure member in c?
What is merge sort in c?
What does typedef struct mean?
What is register variable in c language?
List the different types of c tokens?
What is the use of define in c?
Differentiate Source Codes from Object Codes
what are the 10 different models of writing an addition program in C language?
Where are local variables stored in c?
Difference between malloc() and calloc() function?