Na szybko do głowy przyszły mi 4 metody
1. memset
#include <string.h>
int tab[100];
memset(tab, 0, sizeof(tab));
2. std::fill_n
#include <algorithm>
int tab[100];
std::fill_n(tab, 100, 0);
3. array::fill
#include <array>
std::array<int, 100> tab;
tab.fill(0);
4. konstruktor std::vector
#include <vector>
std::vector<int> tab(100, 0);