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
Write about the use of the virtual destructor?
How do you find out if a linked-list has an end?
What is the difference between C and CPP?
Is c++ vector a linked list?
What are c++ stream classes?
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What is the best c c++ compiler for windows?
What is setiosflags c++?
What are all predefined data types in c++?
Why can’t you call invariants() as the first line of your constructor?
What are the differences between java and c++?
What is data abstraction? How is it different from data encapsulation?
What do you mean by translation unit?
Explain operator overloading.
Distinguish between a # include and #define.