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

What is a void pointer in c?

1105


Is that possible to add pointers to each other?

1364


What are the various types of control structures in programming?

1056


What library is sizeof in c?

1084


What is the best style for code layout in c?

1094


Explain how can I manipulate strings of multibyte characters?

1197


What are the different types of data structures in c?

1162


What is the basic structure of c?

1076


What is wrong with this statement? Myname = 'robin';

1323


What is nested structure?

1035


What is identifiers in c with examples?

1169


What are 'near' and 'far' pointers?

1034


Why c language?

1054


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1977


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1051