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


Please Help Members By Posting Answers For Below Questions

What is a string example?

547


What is a constant? Explain with an example.

556


What is the outcome of cout< a) 16 b) 17 c) 16.5

624


Using a smart pointer can we iterate through a container?

560


Who made c++?

609






What is the difference between equal to (==) and assignment operator (=)?

575


What is the main purpose of c++?

543


What is the extension of c++?

513


Explain how functions are classified in C++ ?

804


What will the line of code below print out and why?

324


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

925


How does class accomplish data hiding in c++?

660


Why main function is special in c++?

667


What is a list c++?

570


Difference between strdup and strcpy?

644