Two arguments to calloc

前端 未结 5 1217
一整个雨季
一整个雨季 2020-12-29 21:39

Why does calloc take two arguments instead of one like malloc?

Specifically, since there is no difference between (or is there?) between th

5条回答
  •  醉梦人生
    2020-12-29 21:48

    Everything is just bytes is a relatively new (ie c/Unix era) invention - on a lot of other architecture things were fixed sized records.

提交回复
热议问题