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
Describe the setting up of my member functions to avoid overriding by the derived class?
Is map ordered c++?
Difference between class and structure.
Declare a class vehicle and make it an abstract data type.
What is stream and its types in c++?
Can a new be used in place of old mallocq? If yes, why?
What does it mean to declare a member variable as static?
Write bites in Turbo c++ Header ("Include") Files.
How do you declare a set in c++?
What is difference between c++ 11 and c++ 14?
How to allocate memory dynamically for a reference?
Difference between inline functions and macros?
What are files in c++?
How can you link a c program with a c function?
What is the rule of three?