Memsert

int a[5];  
memset(a, 0, sizeof(a);
for (int i = 0; i < 5; i++)
    cout << a[i] << " ";
// Output : 0 0 0 0 0
Tame Teira