#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

the x itself is 2 and the print out is 9

Is This Answer Correct ?    14 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of functions?

574


What is struct node in c?

623


explain what are actual arguments?

637


regarding pointers concept

1575


Difference between strcpy() and memcpy() function?

681






What is pass by reference in functions?

325


What are qualifiers and modifiers c?

549


What are comments and how do you insert it in a C program?

742


Explain what is the difference between text files and binary files?

619


What is the size of empty structure in c?

595


the question is that what you have been doing all these periods (one year gap)

1621


how can I convert a string to a number?

597


How to write c functions that modify head pointer of a linked list?

545


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

9658


Why isnt any of this standardized in c?

640