How to initialize an array to something in C without a loop?

Posted by Ram Bhat on Stack Overflow See other posts from Stack Overflow or by Ram Bhat
Published on 2010-05-23T09:22:23Z Indexed on 2010/05/23 9:30 UTC
Read the original article Hit count: 194

Filed under:

Hey guys..

Lets say I have an array like

int arr[10][10];

Now i want to initialize all elements of this array to 0. How can I do this without loops or specifying each element?

Please note that this question if for C

© Stack Overflow or respective owner

Related posts about c