answersLogoWhite

0


Best Answer

1. pointer to a constant means you can not change what the pointer points to

2. constant pointer means you can not change the pointer.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between pointer to constant and constant pointer?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between the Constant pointer and pointer constant and explain it with an example?

Pointer to constant *ptr=10 statement is invalid in pointer to constant i.e assigning value is illegal ptr++ statement is valid in pointer to constant. pointer can be incremented and decremented, Pointer is pointing to constant data object. Declaration: const int *ptr; Constant pointers: *ptr= 10 is absolutely valid in constant pointers i.e assigning value is perfectly legal ptr+++ statement is invalid in constant pointers. pointer can not be incremented or decremented. Declaration; int *const ptr;


What is the difference between constant and non-constant motion?

Acceleration is the difference between constant and non-constant motion.


Difference between genric pointer and normal pointer?

Generic pointer of type 'void *' is compatible with any (data-)pointer, but you cannot use the following operators on it: + - ++ -- += -= * -> []


Difference between rate constant and specific rate constant?

There is no difference between them they are same rate constant is another name of specific rate constant


Give the difference between function and pointer in c?

There is no similarity between the two.


What is the difference between a constant in a graph and a constant in a experiment?

the difference between a constant in a graph and a constant in a experiment is that when on a graph, the constant is the thing that changes, and in a experiment it is the part that stays the same.


Which two pointer does not increment or decrement in arithmetic array?

constant pointer and character pointer


What is the difference between structure and pointer?

A structure is a collection of primitives or other structures. A pointer is a memory address. Comparison of the two is like comparing bowling balls to cinder blocks. You can say that a structure defines the layout of the data, while a pointer points to data that is a particular structure.


What is the difference between ordinary prism and constant deviation prism?

difference between ordinary prism and constant deviation prism


Difference between attenuation constant and phase constant?

nothing


What is the difference between a power point and a white pointer shark?

dfs sd


Difference between modified constant pressure and constant volume?

bobo