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

Describe the setting up of my member functions to avoid overriding by the derived class?

1132


Is map ordered c++?

1089


Difference between class and structure.

1160


Declare a class vehicle and make it an abstract data type.

965


What is stream and its types in c++?

1055


Can a new be used in place of old mallocq? If yes, why?

1095


What does it mean to declare a member variable as static?

1057


Write bites in Turbo c++ Header ("Include") Files.

1263


How do you declare a set in c++?

949


What is difference between c++ 11 and c++ 14?

1092


How to allocate memory dynamically for a reference?

1042


Difference between inline functions and macros?

1039


What are files in c++?

1038


How can you link a c program with a c function?

1070


What is the rule of three?

997