answersLogoWhite

0

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

11y ago

What else can I help you with?

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 motion?

A ball rolling at a constant speed at the same rate of speed on a still surface.


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.


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

An object moving in a straight line at a speed of 50 km/h with a constant velocity of 50 km/h in the same direction is an example of constant speed and constant velocity.


What is an example a constant sound?

The fake sound you hear when you have tinnitus. Also, any device that is permanently on will produce a constant sound.


What is an Example of constant velocity?

constant velocity means the speed and direction are the same.