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

The difference is that in the first case the space is after
the * and in the second case the space is before.

Functionally there is no difference.

Arguably int* x is slightly worse since (as other answers
demonstrate) people can misinterpret "int* i, j" as
declaring two pointers-to-int where "int *i, j" is perhaps a
bit clearer.

Practically, you should adopt whatever style is required by
wherever you work or whomever you work with.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How static variables and local variablesare similar and dissimilar?

1009


What is the advantage of an external iterator.

990


Which software is best for programming?

1102


What do you mean by persistent and non persistent objects?

1374


Is it possible to provide special behavior for one instance of a template but not for other instances?

1071


What is setiosflags c++?

922


Which coding certification is best?

979


Write about c++ storage classes?

1156


Explain what you mean by a pointer.

1065


What are the advantages of inheritance in c++?

1061


What does std :: flush do?

1082


What is a c++ map?

1318


Which of the following is evaluated first: a) && b) || c) !

2320


Define a conversion constructor?

1037


How does list r; differs from list r();?

1099