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 C++ exceptional handling?
What is the difference between structures and unions?
What is c++ flowchart?
Describe exception handling concept with an example?
Can user-defined object be declared as static data member of another class?
How can you say that a template is better than a base class?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Explain function overloading and operator overloading.
What is data abstraction? How is it different from data encapsulation?
What is operators in c++?
What is a try block?
Specify some guidelines that should be followed while overloading operators?
Describe protected access specifiers?
Write about a nested class and mention its use?
explain the reference variable in c++?