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

sqrt(x+1)(x+1*x+1)
as x=2;result will be 2+1*2+1=5;
thank u

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1576


Explain the properties of union.

607


Define macros.

774


What is a function simple definition?

608


How does selection sort work in c?

613






a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

648


How do you use a pointer to a function?

624


How can you increase the allowable number of simultaneously open files?

589


What is null character in c?

684


Is it better to use malloc() or calloc()?

643


What is use of pointer?

583


I have seen function declarations that look like this

593


What are the advantages of using macro in c language?

585


Is c++ based on c?

644


Is there any data type in c with variable size?

626