Is there any difference between dlearations int* x and int
*x? If so tell me the difference?
Answer Posted / gopinath das
All the above answers are wrong.
There is no difference between int *x and int* x;
Also there is no agreement on waht is the best practice. It
depends on the organizations coding standard.
Even we can write int*x. But this is not a good practice.
| Is This Answer Correct ? | 31 Yes | 4 No |
Post New Answer View All Answers
Can you declare an array without a size in c++?
How to tokenize a string in c++?
Can member data be public?
How did c++ get its name?
Is it possible for the objects to read and write themselves?
What are namespaces in c++?
Keyword mean in declaration?
Why do we use classes in c++?
what is a class? Explain with an example.
State the difference between pre and post increment/decrement operations.
Is c++ pass by reference or value?
Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);
Should you pass exceptions by value or by reference?
What are friend classes? What are advantages of using friend classes?
Explain the concept of dynamic allocation of memory?