#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 / guest
i tried in pc the ans is 5
Is This Answer Correct ? | 15 Yes | 3 No |
Post New Answer View All Answers
Write a program to generate random numbers in c?
What is string constants?
What are types of functions?
What is #line in c?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Why we write conio h in c?
List some basic data types in c?
What is #error and use of it?
what are enumerations in C
What is a function simple definition?
When a c file is executed there are many files that are automatically opened what are they files?
Explain union. What are its advantages?
What is cohesion in c?
Differentiate between ordinary variable and pointer in c.
Is linux written in c?