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
Why cstdlib is used in c++?
What is c++ good for?
Difference between strdup and strcpy?
What are c++ stream classes?
What are inline functions? What is the syntax for defining an inline function?
Ask to write virtual base class code?
What is increment operator in c++?
What will strcmp("Astring", "Astring"); return a) A positive value b) A negative value c) Zero
What is #include cmath?
How can you say that a template is better than a base class?
Why is main function important?
Why should we use null or zero in a program?
List different attributes in C++?
Name the implicit member functions of a class.
Which c++ compiler is best?