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
write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.
Can a program run without main function?
Explain the difference between c++ and java.
Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c
Do class declarations end with a semicolon?
Which is best c++ or java?
Define a constructor?
How come you find out if a linked-list is a cycle or not?
When do you call copy constructors?
What does h mean in maths?
What are the four partitions in which c++ compiler divides the ram?
What is overloading unary operator?
What is the benefit of encapsulation?
What do you mean by const correctness?
What is the use of :: operator in c++?