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

What are c++ templates used for?

1101


Which function should be used to free the memory allocated by calloc()?

996


Explain the isa and hasa class relationships. How would you implement each?

1097


Why is c++ so fast?

991


What is virtual base class?

1032


How can you create a virtual copy constructor?

1056


What are the c++ access specifiers?

1371


Is map ordered c++?

1069


What do you mean by funtion prototype?

1027


Is c or c++ more useful?

1007


What is the hardest coding language to learn?

1010


What relational operators if statements in c++?

1138


What is null c++?

1093


What is struct c++?

969


Tell me can a pure virtual function have an implementation?

989