How to empty a char array?

后端 未结 13 1813
抹茶落季
抹茶落季 2021-01-29 19:33

Have an array of chars like char members[255]. How can I empty it completely without using a loop?

char members[255];

By \"empty\" I mean that

13条回答
  •  逝去的感伤
    2021-01-29 20:05

    simpler is better - make sense?

    in this case just members[0] = 0 works. don't make a simple question so complicated.

提交回复
热议问题