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 function and its example?

1233


Is c procedural or object oriented?

1035


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1315


Write a code to determine the total number of stops an elevator would take to serve N number of people.

1273


Why do we need functions in c?

1035


Multiply an Integer Number by 2 Without Using Multiplication Operator

772


What do you mean by command line argument?

1186


C program to find all possible outcomes of a dice?

2371


What is #line?

1070


Explain the use of #pragma exit?

1188


What is the use of pragma in embedded c?

1064


cavium networks written test pattern ..

4089


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2196


What are the features of the c language?

1097


What is volatile variable how do you declare it?

1114