Objects in C language

后端 未结 3 1556
名媛妹妹
名媛妹妹 2021-01-14 06:32

Wheneven I go through some tutorials/notes for C, I quite come across the term \"objects\". I was always wondering what does the object got to do with the procedural languag

3条回答
  •  孤街浪徒
    2021-01-14 06:44

    In the C standard at least, an "object" is roughly a piece of data occupying contiguous memory. So int, long, float, pointer variables are all objects, as well as arrays or structs or arrays of structs, or data in malloc'd chunks of memory.

提交回复
热议问题