#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 / ndarvind
5
Bcz 2+1*2+1=5
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is the use of void pointer and null pointer in c language?
List some of the dynamic data structures in C?
How do I determine whether a character is numeric, alphabetic, and so on?
What is the difference between fread buffer() and fwrite buffer()?
What is extern keyword in c?
What does 4d mean in c?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Which is better pointer or array?
Are global variables static in c?
Can a pointer point to null?
How many levels of indirection in pointers can you have in a single declaration?
When a c file is executed there are many files that are automatically opened what are they files?
What is a shell structure examples?
Tell me is null always defined as 0(zero)?
What are the features of c language?