int arr[5]; for(int i = 0; i < 5; i++) { arr[i] = i * 2; }
int arr[5]; int value = 10; memset(arr, value, sizeof(arr));
int arr[5]; int value = 10; fill(arr, arr + 5, value);
int arr[5] = {1, 2, 3, 4, 5};