Is there any difference between dlearations int* x and int
*x? If so tell me the difference?
Answer Posted / reeju srivastava
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 ? | 15 Yes | 21 No |
Post New Answer View All Answers
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Is it possible to write a c++ template to check for a function's existence?
What is #include cstdlib in c++?
What is c strings syntax?
Explain container class.
What is an inline function in c++?
Why are pointers not used in c++?
What c++ library is string in?
What are the manipulators in c++?
Will c++ be replaced?
Explain linear search.
Which is most difficult programming language?
Difference between overloading vs. Overriding
What are the vectors in c++?
What are virtual constructors/destructors?