You’ll have to use memset
:
memset(board, 0, sizeof board);
More Related Contents:
- Correctly allocating multi-dimensional arrays
- Enabling VLAs (variable length arrays) in MS Visual C++?
- C compile error: “Variable-sized object may not be initialized”
- Difference between array type and array allocated with malloc
- What’s the difference between a VLA and dynamic memory allocation via malloc?
- How does GCC implement variable-length arrays?
- What’s the point of VLA anyway?
- malloced array VS. variable-length-array [duplicate]
- Which compiler should I trust?
- Can we have a struct element of type Variable length array? [duplicate]
- Is it safe to use variable-length arrays?
- Array of variable length in a structure
- Is there any overhead for using variable-length arrays?
- Is the operand of `sizeof` evaluated with a VLA?
- declaring a variable-length array as a global variable in C
- Is it required that a C Variable Length Array is allocated from the stack?
- Why is this array having all remaining values initialized to zero?
- Why is this VLA (variable-length array) definition unreliable?
- Dynamic array allocation on stack in C
- ISO C90 forbids variable length array
- Assembly code fsqrt and fmul instructions
- whats the difference between dynamic memory allocation and normal memory allocation?
- how will i pass the path of a file name to void *buffer using c language?
- Why can’t I cast a function pointer to (void *)?
- What do the parentheses around a function name mean?
- C equivalent to fstream’s peek
- Why (and when) do I need to use parentheses after sizeof?
- Are constant C expressions evaluated at compile time or at runtime?
- Getting started with Intel x86 SSE SIMD instructions
- Is sprintf(buffer, “%s […]”, buffer, […]) safe?