initialize array to 0 in C

Posted by Claudiu on Stack Overflow See other posts from Stack Overflow or by Claudiu
Published on 2010-04-07T03:03:28Z Indexed on 2010/04/07 3:13 UTC
Read the original article Hit count: 162

Filed under:
|
|

I need a big null array in C as a global. Is there any way to do this besides typing out

char ZEROARRAY[1024] = {0, 0, 0, /* ... 1021 more times... */ };

?

© Stack Overflow or respective owner

Related posts about c

    Related posts about arrays