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 / gopinath das

All the above answers are wrong.

There is no difference between int *x and int* x;
Also there is no agreement on waht is the best practice. It
depends on the organizations coding standard.
Even we can write int*x. But this is not a good practice.

Is This Answer Correct ?    31 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you declare an array without a size in c++?

965


How to tokenize a string in c++?

1005


Can member data be public?

995


How did c++ get its name?

982


Is it possible for the objects to read and write themselves?

1061


What are namespaces in c++?

1035


Keyword mean in declaration?

1004


Why do we use classes in c++?

999


what is a class? Explain with an example.

1103


State the difference between pre and post increment/decrement operations.

1023


Is c++ pass by reference or value?

1005


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

1012


Should you pass exceptions by value or by reference?

1090


What are friend classes? What are advantages of using friend classes?

1044


Explain the concept of dynamic allocation of memory?

1048