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

How to allocate memory dynamically for a reference?

1044


What is meant by forward referencing and when should it be used?

1010


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

1071


How do we balance an AVL Tree in C++?

1128


Can we change the basic meaning of an operator in c++?

1114


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1128


How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2311


Does a derived class inherit or doesn't inherit?

1089


What are enumerations?

1103


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

1094


What is class in c++ with example?

1265


What are 2 ways of exporting a function from a dll?

1192


List the special characteristics of constructor.

1176


Can member functions be private?

1003


What is c++ & why it is used?

1091