What is meant by the most restrictive type in C?

前端 未结 3 823
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-11 13:02

The book The C Programming Language talks about \"the most restrictive type\" in section 8.7, Example — A Storage Allocator:

A

3条回答
  •  感动是毒
    2021-01-11 13:38

    I think that the quote means the most restrictive alignment of types. For example char is the least restructive type if to follow this logic. An object of type char does not impose a constraint on its alignment while for example type int has alignment requirement of usually 4 byte bounds. Thus int is a more restrictive type than char.

提交回复
热议问题