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;


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: + - ++ -- += -= * -> []


Give the difference between function and pointer in c?

There is no similarity between the two.


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


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


Is there a difference between an array and a pointer?

Array is a data type which can be represented as a[1],a[2],a[3].... Pointer is also a data type. The speciality of pointer is instead of address of the variable it will give the reference to the address of the variable. E.g. int *test Here test is a pointer variable. which will be the reference to the address == One dimensional arrays are constant pointers, you cannot change their values, eg: int a[10], *pa = &a[3]; p[0]= a[0]; // ok a[0]= p[0]; // ok p= a; // ok a= p; // INVALID for a is constant


Difference between modified constant pressure and constant volume?

bobo