Write a program using pointers that counts the number of elements that are nonzero and stops when a zero is found from the given array. Display the result using printf statement.
array[] = {3, 7, 9, 8, 5, 1, 3, 0, 2, 1, 6}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…