【C】Pointer (7) About Object Type

※ 日本語ページはこちら

I will explain about object type.

Below is how spec says. If you go index, object is described in 3.1.4, object type is described in 6.2.5.

About Object

3.14
object

region of data storage in the execution environment, the contents of which can represent values

NOTE When referenced, an object may be interpreted as having a particular type; see 6.3.2.1.

ref: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf#page=17

To understand above, I recommend to understand exact definition of value in C language.

Please refer below articles for value.

Lets’ condense and complement.

Object exist in data storage (memory, cache , register,etc) when C programs run in the execution environment. The contents of object may mean values.

If you have time, it may be worth for reading 6.3.2.1, but I skip this time.

Object Type

Explained below.

6.2.5 Types

1.
… object types (types that fully describe objects)

ref: http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf#page=45

Simple enough if we understand object.

That’s all for this time.