Check out example codes for "c++ float array zero". It will help you in understanding the concepts better.

Code Example 1

float arr1[10] = { };       // all elements are 0
float arr2[10] = { 0 };     // all elements are 0
float arr3[10] = { 1 };     // first element is 1, all others are 0
float arr4[10] = { 1, 2 };  // first element is 1, second is 2, all others are 0

Learn ReactJs, React Native from akashmittal.com