#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 / guest
the x itself is 2 and the print out is 9
| Is This Answer Correct ? | 14 Yes | 16 No |
Post New Answer View All Answers
What is %d called in c?
What is wrong with this declaration?
What is the difference between break and continue?
What is an example of structure?
Explain what is the use of a semicolon (;) at the end of every program statement?
Why do we use pointer to pointer in c?
Explain what is the difference between far and near ?
What is string in c language?
What is the difference between null pointer and wild pointer?
What are the three constants used in c?
What is sorting in c plus plus?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
What is typedef struct in c?
What are the features of the c language?
What does volatile do?