Doubt in Pointer's theory question

Q­2 which of the following statement(s) best refer to pointers?
A) Pointer arithmetic is permitted on pointers of any type.

B) A c pointer of type void can be used to directly examine or modify
any object of any type

C) A c pointer knows the " types of pointers " and " indirectly referenced
data items at runtime "

–> Can you please explain © part… Can you please provide with an example.

Hey
A c pointer knows the types of pointers and indirectly referenced data items at runtime.
We have already discussed that a must-have a type before using it. So, it knows the type of data it can point to.
Also, the *p (referenced data item i.e. the value stored at the location pointed by it) is accessed at the time of execution or at the time, when we are using it.

1 Like

Thank you so much :grin:

1 Like

You’re Welcome :smile: