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
describe private access specifiers?
What is a linked list in c++?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
What is a storage class used in c++?
What are the advantages of using friend classes?
What is iomanip c++?
What are the data types in c++?
What are pointer-to-members? Explain.
What is a static member?
Why is it necessary to use a reference in the argument to the copy constructor?
What is the average salary of a c++ programmer?
What is the use of cmath in c++?
What do you mean by a template?
Explain stack & heap objects?
How many standards of c++ are there?