Initializing variable length array [duplicate]

You’ll have to use memset:

memset(board, 0, sizeof board);

Leave a Comment