#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 / pravin
sqrt(x+1)(x+1*x+1)
as x=2;result will be 2+1*2+1=5;
thank u
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is a global variable in c?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Where is volatile variable stored?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Can stdout be forced to print somewhere other than the screen?
An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above
What is static and auto variables in c?
What does & mean in scanf?
What is an example of structure?
How can I recover the file name given an open stream or file descriptor?
What is table lookup in c?
What is type qualifiers?
What are operators in c?
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
What is a protocol in c?