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
Is c++ the best programming language?
What is capacity in vector in c++?
What is std :: endl?
describe private access specifiers?
How does list r; differs from list r();?
What is the exit function in c++?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
How do I use turbo c++?
give me an example for testing a program showing the test path .show how the test is important and complex.
Is c++ a good beginners programming language?
How do we implement inheritance in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is the type of 'this' pointer?
Does c++ cost money?
What are the uses of c++ in the real world?