#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
Is c easier than java?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
what is reason of your company position's in india no. 1.
What is a wrapper function in c?
What is malloc() function?
What does the c preprocessor do?
What are lookup tables in c?
When should volatile modifier be used?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the difference between Printf(..) and sprint(...) ?
Is c call by value?
What is the total generic pointer type?
Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
Do pointers store the address of value or the actual value of a variable?