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
Why do we use pointers in c++?
Describe delete operator?
Explain what are mutator methods in c++?
What gives the current position of the put pointer?
Is c++ primer good for beginners?
Which c++ operator cannot overload?
What is the use of 'using' declaration in c++?
What is the this pointer?
Why is null pointer used?
Which is the best c++ compiler for beginners?
What is data hiding c++?
What is encapsulation in C++? Give an example.
Is c++ a programming language?
Define a constructor - what it is and how it might be called (2 methods)?
What is this weird colon-member (" : ") syntax in the constructor?