What is the difference between const int *ptr and int const
*ptr???
Answer Posted / abdul sami
'const int* ptr' means the value whose address is being
held by ptr is constant and cant be changed while
'int const *ptr' means the pointer cant be changed like it
cant be incremented or decremented although you can change
the date pointed to by ptr.
| Is This Answer Correct ? | 41 Yes | 57 No |
Post New Answer View All Answers
What is the main purpose of inheritance law?
class type to basic type conversion
Why is oop useful?
What is difference between pop and oop?
What are the three parts of a simple empty class?
What is encapsulation example?
What is a superclass in oop?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
Why is abstraction used?
What is pure oop?
What is advantage of inheritance?
What is polymorphism in oop example?
What is difference between inheritance and polymorphism?
What is stream in oop?
What is multilevel inheritance in oop?