Scalar vs. primitive data type - are they the same thing?

后端 未结 7 567
深忆病人
深忆病人 2020-12-07 07:45

In various articles I have read, there are sometimes references to primitive data types and sometimes there are references to scalars.

My understanding of each is th

7条回答
  •  孤城傲影
    2020-12-07 08:14

    In C, enumeration types, characters, and the various representations of integers form a more general type class called scalar types. Hence, the operations you can perform on values of any scalar type are the same as those for integers.

提交回复
热议问题