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
Is c++ an oop?
Write a c program for binary addition of two 8 bit numbers.
How to implement is-a and has-a class relationships?
What is the most powerful coding language?
What is data binding in c++?
What is protected inheritance?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
what is Loop function? What are different types of Loops?
What is c++ used for in games?
Explain class invariant.
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
What is the difference between containment and delegation?
What is the default width for ouputting a long integer using the insertion operator?
What is doubly linked list in c++?
How the keyword struct is different from the keyword class in c++?