a1exlism
4/17/2019 - 5:43 AM

C_init_int_arrary

// It Depand on value

//  1. Value 0 | -1
#include <string.h>
memset(arr, -1, sizeof(arr));

//  2. any value
#include <algorithm>
using namespace std;
fill(arr, arr+len, VAL); //  address