What is the difference between const int *ptr and int const
*ptr???
Answer Posted / manjunath
a) const int *ptr and
b) int const *ptr
Both actually mean the same...
Read from Right to left:
for(a):-> ptr is a pointer to an integer Constant and
for(b):-> ptr is a pointer to a constant integer...
..............
int *const ptr----------> ptr is a constant pointer to an
integer...
Is This Answer Correct ? | 95 Yes | 26 No |
Post New Answer View All Answers
Explain the concepts involved in Object Oriented programming.
What is polymorphism in oops with example?
What is encapsulation process?
Can a destructor be called directly?
Write a program to sort the number with different sorts in one program ??
What is inheritance write a program to show use of inheritance?
What is an interface in oop?
What is class and object with example?
#include
What is the main feature of oop?
What type of loop is a for loop?
Which is not an object oriented programming language?
What is polymorphism in oop example?
Why do pointers exist?
Write a program to reverse a string using recursive function?