#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 meaning of 2d in c?
What is a global variable in c?
What is an auto variable in c?
What is extern keyword in c?
Define and explain about ! Operator?
Explain Basic concepts of C language?
Why is c used in embedded systems?
Explain what are global variables and explain how do you declare them?
What is #pragma statements?
Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record
What is a header file?
How can I get the current date or time of day in a c program?
Do pointers store the address of value or the actual value of a variable?
How can I remove the trailing spaces from a string?
How can I trap or ignore keyboard interrupts like control-c?