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

Write about the use of the virtual destructor?

1009


How do you find out if a linked-list has an end?

1128


What is the difference between C and CPP?

1169


Is c++ vector a linked list?

1004


What are c++ stream classes?

1058


What is the maximum value of a unsigned char a) 255 b) 256 c) 128

1074


What is the best c c++ compiler for windows?

1070


What is setiosflags c++?

984


What are all predefined data types in c++?

1134


Why can’t you call invariants() as the first line of your constructor?

1031


What are the differences between java and c++?

1087


What is data abstraction? How is it different from data encapsulation?

1007


What do you mean by translation unit?

1099


Explain operator overloading.

1071


Distinguish between a # include and #define.

1160