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 / debendra nath tiwary

there is no difference between them here.
but difference comes how we use them.
(int*) can be used for typecasting.
(int *x) is used for declaration purpose. here x is declared as pointer variable.
even if declare like (int* x) is valid but not a formal way to
to declare pointer variable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why cstdlib is used in c++?

995


What is c++ good for?

1001


Difference between strdup and strcpy?

1137


What are c++ stream classes?

989


What are inline functions? What is the syntax for defining an inline function?

1084


Ask to write virtual base class code?

2695


What is increment operator in c++?

968


What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero

1052


What is #include cmath?

1040


How can you say that a template is better than a base class?

1025


Why is main function important?

1051


Why should we use null or zero in a program?

972


List different attributes in C++?

1015


Name the implicit member functions of a class.

1031


Which c++ compiler is best?

1095