How does Enum allocate Memory on C?

前端 未结 3 608
渐次进展
渐次进展 2020-12-18 03:58

I\'m trying to work with C and Assembly (intelx8086) lenguage.

I\'m also using one class a friend of mine gave me that has a

typedef enum data_10 {a=         


        
3条回答
  •  半阙折子戏
    2020-12-18 04:59

    An enum does not really take any memory at all; it's understood by the compiler and the right numbers get used during compilation. It's an int, whose size is dependent on your system.

提交回复
热议问题