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
Can a list of string be stored within a two dimensional array?
what is data encapsulation in C++?
How do you establish a has-a relationship?
What is microsoft c++ redistributable 2013?
What is the protected keyword used for?
What is set in c++?
Which is best ide for c++?
Does c++ support multilevel and multiple inheritances?
What apps are written in c++?
What are stacks?
Is java a c++?
What is the difference between a reference and a pointer?
Write about the access privileges in c++ and also mention about its default access level?
What is the role of copy constructor in copying of thrown objects?
Why c++ is faster than java?