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

What does h mean in maths?

1194


What is a driver program?

1103


How static variables and local variablesare similar and dissimilar?

1039


What is #include iostream?

1244


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

1001


Are c and c++ different?

980


Write a Program to find the largest of 4 no using macros.

1079


What are the advantages of c++? Explain

1060


What is overloading unary operator?

1086


What is the role of static keyword for a class member variable?

1068


how to explain our contribution in the project?

3699


What is #include iostream in c++?

1056


What do you mean by late binding?

1121


What do manipulators do?

1009


What are the types of container classes?

1154