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 real time example of inheritance?
What is encapsulation in oops?
What type of loop is a for loop?
Is html an oop?
Can abstract class have normal methods?
What is polymorphism what are the different types of polymorphism?
How Do you Code Composition and Aggregation in C++ ?
What is protected in oop?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
Can enum be null?
What is the importance of oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
How to use CMutex, CSemaphore in VC++ MFC