#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


Please Help Members By Posting Answers For Below Questions

Is c easier than java?

568


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

1492


what is reason of your company position's in india no. 1.

1775


What is a wrapper function in c?

590


What is malloc() function?

638






What does the c preprocessor do?

620


What are lookup tables in c?

550


When should volatile modifier be used?

556


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 ?

804


What is the difference between Printf(..) and sprint(...) ?

788


Is c call by value?

605


What is the total generic pointer type?

728


Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2983


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?

780


Do pointers store the address of value or the actual value of a variable?

610