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
What is copy constructor? Can we make copy constructor private in c++?
What is pair in c++?
How do you define/declare constants in c++?
Explain one method to process an entire string as one unit?
What are the 3 levels of programming languages?
What is do..while loops structure?
What are guid? Why does com need guids?
what are the characteristics of Class Members in C++?
What is the role of static keyword for a class member variable?
What is c++ redistributable?
Is it possible to provide default values while overloading a binary operator?
What is capacity in vector in c++?
What is the use of endl in c++ give an example?
What is c strings syntax?
What is general form of pure virtual function? Explain?