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}
548k questions
547k answers
4 comments
86.3k users