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
How does com provide language transparency?
What is the difference between while and do while loop? Explain with examples.
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
What is the difference between ++ count and count ++?
Does c++ cost money?
What are namespaces in c++?
What do you mean by translation unit?
Will the following program execute?
What is the auto keyword good for in c++?
How do you initialize a string in c++?
Const char *p , char const *p What is the difference between the above two?
Explain the uses of static class data?
What is the role of C++ shorthand's?
Why do we use constructor?
Explain shallow copy?