Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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

What is a global variable in c?

958


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1135


Where is volatile variable stored?

1029


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1193


Can stdout be forced to print somewhere other than the screen?

1017


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

1107


What is static and auto variables in c?

1024


What does & mean in scanf?

1047


What is an example of structure?

984


How can I recover the file name given an open stream or file descriptor?

1033


What is table lookup in c?

1037


What is type qualifiers?

1082


What are operators in c?

966


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

1005


What is a protocol in c?

951