Identifying data type of a value in memory in C?

前端 未结 5 1276
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-21 11:21

How does a program/application know that the data in a memory address is of a certain data type.

For instance, suppose there is int a; and suppose variable

5条回答
  •  太阳男子
    2021-01-21 11:57

    When the C program is past linking, and don't need to expose any symbols outside, this data does not exist anymore.

    The data types are language-related, when the executable is ready, the language don't play a part anymore, as now it's all memory and processor.

提交回复
热议问题