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

Is react oop?

829


What is encapsulation in ict?

818


What is class encapsulation?

837


How long to learn object oriented programming?

823


What do you mean by abstraction?

827


Can abstract class have normal methods?

800


What does and I oop mean?

851


What is a null tree?

875


Which method cannot be overridden?

773


How do you define social class?

817


what are the different types of qualifier in java?

2027


What does I oop mean?

845


How to hide the base class functionality in Inheritance?

864


What do you mean by Encapsulation?

817


How can you overcome the diamond problem in inheritance?

968