#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 / c harlee jain
Value of x will be 2
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is the size of structure in c?
What do you mean by a local block?
explain what is an endless loop?
Explain logical errors? Compare with syntax errors.
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
How can I read/write structures from/to data files?
How can you be sure that a program follows the ANSI C standard?
formula to convert 2500mmh2o into m3/hr
What is the modulus operator?
What is a rvalue?
What are the functions to open and close file in c language?
Can a void pointer point to a function?
How many types of operators are there in c?
What is the purpose of 'register' keyword?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above