answersLogoWhite

0


Best Answer

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;

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between the Constant pointer and pointer constant and explain it with an example?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between ordinary constant and an arbitrary constant?

Ordinary constant is a real constant which is same in all time but arbitrary constant is not constant at all time intervals, especially we can see arbitrary constants in integrals.For example the anti derivative of x+C is 1. Here we can replace C with any constant so C is arbitrary constant


What is the difference between a number and a constant?

Constant is referred to numbers that stay the same, particularly in experiment/studies. A number is any form of entity that is counted. For example, 5, 3 billion....etc...


Difference between constant 12V and Switched 12V?

12V Constant = Constant power direct from battery. 12V Switched = Accessory power only when turned to the on/accessory position (example: car stereo only turns on when the car is running or in accessory position).


What has a variation in the relationship between two variable quantities with a constant ratio?

The relationship is a linear one. For example when driving at a constant speed, the relationship between distance driven and the time driven is linear with a constant ratio (of the constant speed).


How are constant speed and constant acceleration different?

There is a huge difference between constant speed and constant acceleration. Constant speed is when the object is travelling constant, no change in its velocity and acceleration or in other words no extra force to speed up. Constant acceleration when the object is acceleration constant, it means that the speed of the object is change at the same rate each second. The acceleration rate at which the object is travelling is constant. for example, when a car is stationary at a traffic light and it starts acceleration, picking up speed but the rate of acceleration will not constant because the amount of force applied differs each second due to the acceleration rate.


What does constant mean in math?

Constant is a number with no variables. For an example, 12a, but this is a constant 12.


Example of question using the word constant?

Was that a constant trend?


What is an Example of constant velocity?

constant velocity means the speed and direction are the same.


What does the word constant mean?

Constant means something will go or play over and over again. Example: He is very constant at basketball!


Is motion with constant velocity an example of motion with constant acceleration?

Well, technically yes, and we even know the magnitude of the constant acceleration.If velocity is constant, that tells you that acceleration is zero, which sounds likea constant to us.


If a car moves at constant speed also moving at constant velocity give an example?

A car moving at constant speed in a straight line is also moving at constant velocity.


What is an example of an object moving at constant speed and constant velocity?

Photon or rather light