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

How to declare an array of pointers to integer?

1213


How do you declare A pointer to a function which receives nothing and returns nothing

1301


What are the four partitions in which c++ compiler divides the ram?

1285


What are the differences between the function prototype and the function defi-nition?

1157


Can we use struct in c++?

1073


Explain bubble sorting.

1142


Define a pointer to a data member of the type pointer to pointer?

1037


What are the advantages of pointers?

1120


What is lambda expression c++?

1120


How do you flush a buffer in c++?

1144


Write about the local class and mention its use?

1133


Implement stack operations with pointers with appropriate exception checks.

1022


Explain what are the sizes and ranges of the basic c++ data types?

1201


What is lambda in c++?

1307


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1046