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 pure oop?
What is abstraction example?
What is polymorphism used for?
what is difference between class template and template class?
What is oops and its features?
why reinterpret cast is considered dangerous?
What is abstraction in oop with example?
What is encapsulation selenium?
Why is abstraction needed?
What is the fundamental idea of oop?
What is the real time example of inheritance?
What is the advantage of oop over procedural language?
what type of question are asked in thoughtworks pair programming round ?
What is the problem with multiple inheritance?
What is encapsulation with real life example?