#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 / c harlee jain

Value of x will be 2

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is meant by gets in c?

609


Explain what are the different data types in c?

761


Is javascript based on c?

595


What is the difference between if else and switchstatement

1313


Which is best book for data structures in c?

599






why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

612


Can static variables be declared in a header file?

618


Is c is a procedural language?

601


What are linker error?

615


What is a pointer on a pointer in c programming language?

621


how to introdu5ce my self in serco

1523


How can I swap two values without using a temporary?

618


What is d scanf?

595


Why is c not oop?

540


Can we use visual studio for c?

553