#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 does char * * argv mean in c?
Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is the role of this pointer?
What is difference between union All statement and Union?
Array is an lvalue or not?
Explain what is the benefit of using an enum rather than a #define constant?
What is zero based addressing?
How do I determine whether a character is numeric, alphabetic, and so on?
What is return type in c?
Write a C program to count the number of email on text
How do you write a program which produces its own source code as output?
How are variables declared in c?
Why main is not a keyword in c?
I have a varargs function which accepts a float parameter?