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

Is c++ an oop?

1106


Write a c program for binary addition of two 8 bit numbers.

4124


How to implement is-a and has-a class relationships?

1035


What is the most powerful coding language?

1068


What is data binding in c++?

966


What is protected inheritance?

1055


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1197


what is Loop function? What are different types of Loops?

1235


What is c++ used for in games?

1174


Explain class invariant.

1071


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1233


What is the difference between containment and delegation?

1337


What is the default width for ouputting a long integer using the insertion operator?

1248


What is doubly linked list in c++?

1086


How the keyword struct is different from the keyword class in c++?

1043