initializing array with 0 code example Example: Initialize all the elements of array to 0 int myArray[10] = { 0 }; // all elements 0