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

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 ?    4 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is virtual base class?

1091


What does iomanip mean in c++?

1214


Explain how an exception handler is defined and invoked in a Program.

1190


What is called array?

1104


Search for: what is pair in c++?

1129


How do I download c++?

1011


Why is c++ still best?

995


What is a driver program?

1117


Why is c++ called oops?

1190


Explain terminate() and unexpected() function?

1113


Define a constructor - what it is and how it might be called (2 methods)?

1158


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

1000


What is a literal in c++?

1116


What is the use of data hiding?

1026


Explain one-definition rule (odr).

1127