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...

Is there any difference between dlearations int* x and int
*x? If so tell me the difference?

Answer Posted / reeju srivastava

There is no diffrence between int* x and int *x.
but difference will come into picture when you use:

Case 1:
int* x,y,z;

and

Case2:
int *x,y,z;

in first case x,y and z are integer pointer, where as
un second case only x is integer pointer rest y and z is
integer. So its always a good practice not to put multiple
variable in single line.

Is This Answer Correct ?    15 Yes 21 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the type of 'this' pointer?

976


Is c++ high level programming language?

1077


Explain pass by value and pass by reference.

1007


State two differences between C and C++.

1091


What are the two types of comments, and how do they differ?

1053


What is the difference between #import and #include in c++?

1060


What is the difference between an array and a list?

980


How do you add an element to a set in c++?

935


How many types of scopes are there in c++?

1038


What are c++ manipulators?

1007


what is COPY CONSTRUCTOR and what is it used for?

1024


What is java and c++?

1102


What do you mean by persistent and non persistent objects?

1360


Should you pass exceptions by value or by reference?

1090


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1401