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
Is string an object in c++?
Explain the pure virtual functions?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Is python better than c++?
What is c++ and its uses?
Explain about templates of C++.
What is the latest version on c++?
Why is c++ a mid-level programming language?
What is a singleton c++?
What do you mean by early binding?
What are the uses of typedef in a program?
Can I make ios apps with c++?
What does namespace mean in c++?
Is c++ an oop?
Refer to a name of class or function that is defined within a namespace?