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
Can we define a class within the interface?
What is the importance of oop?
Can we override main method?
What is the significance of classes in oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What are functions in oop?
What are the 4 main oop principles?
What are objects in oop?
How can you overcome the diamond problem in inheritance?
What is the real time example of encapsulation?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout<
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
#include
Why do while loop is used?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.