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 / prasant

Reejusri is correct....
VC++ compiler complains with error
"error C2440: '=' : cannot convert from 'int' to 'int *'
1> Conversion from integral type to pointer type
requires reinterpret_cast, C-style cast or function-style
cas" for the following code

int *x,y,z;
x=y;

So, there is a difference.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a list of string be stored within a two dimensional array?

962


what is data encapsulation in C++?

1012


How do you establish a has-a relationship?

1040


What is microsoft c++ redistributable 2013?

1042


What is the protected keyword used for?

1063


What is set in c++?

1071


Which is best ide for c++?

967


Does c++ support multilevel and multiple inheritances?

948


What apps are written in c++?

1033


What are stacks?

1012


Is java a c++?

981


What is the difference between a reference and a pointer?

1048


Write about the access privileges in c++ and also mention about its default access level?

1009


What is the role of copy constructor in copying of thrown objects?

1007


Why c++ is faster than java?

1008