#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 / jugal
Sorry guys,
my bad,
i thought it was
#define sqr(x) ((x)*(x))
the output wud be 5
but still the value of will be 2 only
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are disadvantages of C language.
can we change the default calling convention in c if yes than how.........?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Why doesn't C support function overloading?
Explain enumerated types.
how to introdu5ce my self in serco
What is the difference between the = symbol and == symbol?
When is a “switch” statement preferable over an “if” statement?
What is %s and %d in c?
How many types of functions are there in c?
All technical questions
What are the primitive data types in c?
How can I find the modification date and time of a file?
What is the difference between array and pointer?
What is static and volatile in c?