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 / jugal

Sorry guys,
my bad,
i thought it was
#define sqr(x) ((x)*(x))

the output wud be 5
but still the value of will be 2 only

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When can a far pointer be used?

966


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2412


What are the types of type specifiers?

983


What are the three constants used in c?

930


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

1026


Why are algorithms important in c program?

1068


How to throw some light on the b tree?

1021


What is the use of void pointer and null pointer in c language?

1071


What kind of structure is a house?

994


Write a program to print factorial of given number using recursion?

960


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1145


Why c is a mother language?

965


How can I get back to the interactive keyboard if stdin is redirected?

1134


How do you use a 'Local Block'?

1120


What are the features of the c language?

1036