Is there any difference between dlearations int* x and int
*x? If so tell me the difference?

Answer Posted / steve

I think there is no difference.
Also,

Case 1:
int* x,y,z;

and

Case2:
int *x,y,z;

these two cases are exactly same.
In both cases, y and z are not pointers. They are int.

Is This Answer Correct ?    32 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we define a constructor as virtual in c++?

605


Define a constructor - what it is and how it might be called (2 methods)?

606


What is a type library?

686


Differentiate between C and C++.

714


Can a program run without main?

633






Why do we need runtime polymorphism in c++?

561


What are features of c++?

639


Explain the difference between realloc() and free() in c++?

538


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3431


Why ctype h is used in c++?

526


What is pointer to array in c++?

622


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

584


What is a virtual destructor? Explain the use of it?

553


Is dev c++ a good compiler?

526


Define basic type of variable used for a different condition in C++?

670