0

Pointer is a derived data type...is it right?

And if it is right then what is pointer exactly... Datatype or variable???

25th Oct 2018, 9:17 AM
Dharati
Dharati - avatar
2 Answers
+ 5
C11 standard (n1570, §6.2.5, p.42) says " Any number of derived types can be constructed from the object and function types, as follows: [...] — A pointer type may be derived from a function type or an object type, called the referenced type. A pointer type describes an object whose value provides a reference to an entity of the referenced type. A pointer type derived from the referenced type T is sometimes called ‘‘pointer to T ’’. The construction of a pointer type from a referenced type is called ‘‘pointer type derivation’’. A pointer type is a complete object type. [...]"
25th Oct 2018, 10:38 AM
Babak
Babak - avatar
+ 2
Thank you Jay Matthews and C++soldier (Babak )
27th Oct 2018, 6:05 AM
Dharati
Dharati - avatar