Posts by Douglas Oliveira • 1 point
1 post
-
-4
votes1
answer55
viewsQ: While counting zero more
#include <stdio.h> #include <stdlib.h> int zeros(signed char *V, int n){ int i = 0; while(!V[i] && i < n){ // Ou acabou o vetor caso seja inteiro zero i++; } return i; } int…
casked Douglas Oliveira 1