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 are c++ templates used for?
Which function should be used to free the memory allocated by calloc()?
Explain the isa and hasa class relationships. How would you implement each?
Why is c++ so fast?
What is virtual base class?
How can you create a virtual copy constructor?
What are the c++ access specifiers?
Is map ordered c++?
What do you mean by funtion prototype?
Is c or c++ more useful?
What is the hardest coding language to learn?
What relational operators if statements in c++?
What is null c++?
What is struct c++?
Tell me can a pure virtual function have an implementation?