#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 / poorna

Warning: Function Should have return value........

Is This Answer Correct ?    4 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can include files be nested?

829


What is static and volatile in c?

975


Why do we need arrays in c?

807


What does a function declared as pascal do differently?

795


Which type of language is c?

825


Why do we need functions in c?

737


How do we open a binary file in Read/Write mode in C?

950


Can main () be called recursively?

859


What is hashing in c language?

830


What are file streams?

764


How does placing some code lines between the comment symbol help in debugging the code?

753


Explain the use of function toupper() with and example code?

842


Why does everyone say not to use gets?

795


What is the use of a ‘’ character?

798


How do we print only part of a string in c?

801