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

Explain the pure virtual functions?

643


Give 10 points of differences between C & C++.

628


What is tellg () in c++?

727


Does c++ have a hash table?

547


What do you mean by storage classes?

798






Will a catch statement catch a derived exception if it is looking for the base class?

564


How are virtual functions implemented in c++?

605


Why are pointers used?

582


Why is null pointer used?

686


What is the difference between the parameter to a template and the parameter to a function?

639


Can static member variables be private?

631


Difference between struct and class in terms of access modifier.

699


Explain the advantages of using friend classes.

594


Is c++ a programming language?

597


Carry out conversion of one object of user-defined type to another?

616