Is there any difference between dlearations int* x and int
*x? If so tell me the difference?
Answer Posted / debendra nath tiwary
there is no difference between them here.
but difference comes how we use them.
(int*) can be used for typecasting.
(int *x) is used for declaration purpose. here x is declared as pointer variable.
even if declare like (int* x) is valid but not a formal way to
to declare pointer variable.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain how to initialize a const data member.
which operator is used for performing an exponential operation a) > b) ^ c) none
Can we sort map in c++?
What is a static member?
why and when we can declar member fuction as a private in the class?
Eplain extern keyword?
What's the order in which the objects in an array are destructed?
What is data structure in c++?
What is a loop? What are different types of loops in c++?
What are advantages of c++?
What is the header file for setw?
What is copy constructor? Can we make copy constructor private in c++?
What is object in c++ wikipedia?
Write about a nested class and mention its use?
In inline " expression passed as argument are evalauated once " while in macro "in some cases expression passed as argument are evaluated more than once " --> i am not getting it plz help to make me understand....