function to initialise to 0 array cpp code example Example: c++ initialize array int arr[3] = {1, 5, 4};