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 is c++ still popular?
What is doubly linked list in c++?
What is the history of c++?
What is while loops?
What are multiple inheritances (virtual inheritance)?
What is input operator in c++?
What are the implicit member functions of class?
Explain about vectors in c ++?
What is the difference between the compiler and the preprocessor?
What c++ is used for?
Are vectors passed by reference c++?
How does a C++ structure differ from a C++ class?
Is c++ harder than java?
How do we implement inheritance in c++?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)