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
Can a destructor be called directly?
What is difference between inheritance and polymorphism?
How do you define a class in oop?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Why interface is used?
IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?
What is inheritance write a program to show use of inheritance?
Explain the advantages of inheritance.
What is encapsulation process?
Can private class be inherited?
What is an example of genetic polymorphism?
What is multilevel inheritance in oop?
What are the data types in oop?
How do you define social class?
What do you mean by overloading?