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
How do you achieve polymorphism?
Why is polymorphism important in oop?
What is difference between polymorphism and inheritance?
What is object and example?
How many human genes are polymorphic?
Write a program to reverse a string using recursive function?
explain sub-type and sub class? atleast u have differ it into 4 points?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
Which type does string inherit from?
What is use of overloading?
What does I oop mean?
2. Give the different notations for the class.\
What is the importance of oop?
why reinterpret cast is considered dangerous?
What are the types of abstraction?