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


Please Help Members By Posting Answers For Below Questions

What is byval and byref? What are differences between them?

1689


What are different oops concepts?

578


What is the purpose of polymorphism?

681


officer say me - i am offered to a smoking , then what can you say

1582


What is the point of oop?

656






What are functions in oop?

586


What is oops?what is its use in software engineering?

557


What is the problem with multiple inheritance?

586


What is stream in oop?

841


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

6486


What are the types of abstraction?

557


Plese get me a perfect C++ program for railway/airway reservation with all details.

3429


What is the important feature of inheritance?

635


write string class as your own class in java without using any built-in function

1977


What is methods in oop?

544