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
What does h mean in maths?
What is a driver program?
How static variables and local variablesare similar and dissimilar?
What is #include iostream?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
Are c and c++ different?
Write a Program to find the largest of 4 no using macros.
What are the advantages of c++? Explain
What is overloading unary operator?
What is the role of static keyword for a class member variable?
how to explain our contribution in the project?
What is #include iostream in c++?
What do you mean by late binding?
What do manipulators do?
What are the types of container classes?