#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 function and its example?
Is c procedural or object oriented?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Why do we need functions in c?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What do you mean by command line argument?
C program to find all possible outcomes of a dice?
What is #line?
Explain the use of #pragma exit?
What is the use of pragma in embedded c?
cavium networks written test pattern ..
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
What are the features of the c language?
What is volatile variable how do you declare it?