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