Is there any difference between dlearations int* x and int
*x? If so tell me the difference?
Answer Posted / reejusri
There is no diffrence between int* x and int *x.
but difference will come into picture when you use:
Case 1:
int* x,y,z;
and
Case2:
int *x,y,z;
in first case x,y and z are integer pointer, where as
un second case only x is integer pointer rest y and z is
integer. So its always a good practice not to put multiple
variable in single line.
Is This Answer Correct ? | 4 Yes | 23 No |
Post New Answer View All Answers
Can a new be used in place of old mallocq? If yes, why?
What is algorithm in c++ programming?
Explain how we implement exception handling in c++?
What are advantages of using friend classes?
Is overriding possible in c++?
Who invented turbo c++?
Which function cannot be overloaded c++?
What is istream c++?
Why null pointer is used?
What is #include c++?
Array base access faster or pointer base access is faster?
What is c++ prototype?
Which ide is best for c++?
What are protected members in c++?
Can I learn c++ without knowing c?