diff --git a/2ano/1semestre/aed/aula01/ProgA b/2ano/1semestre/aed/aula01/ProgA index b52d5b2..7e6ec00 100755 Binary files a/2ano/1semestre/aed/aula01/ProgA and b/2ano/1semestre/aed/aula01/ProgA differ diff --git a/2ano/1semestre/aed/aula01/ProgA.c b/2ano/1semestre/aed/aula01/ProgA.c index 1a48a6f..22c21a1 100644 --- a/2ano/1semestre/aed/aula01/ProgA.c +++ b/2ano/1semestre/aed/aula01/ProgA.c @@ -1,25 +1,16 @@ #include -int arr_length(int arr[]) -{ - int count = 0; - for(int i=0; arr[i]!='\0'; i++) { - count++; - } - return count; -} - -void print_array(char s[], int arr[]) { +void print_array(char s[], int arr[], int arr_size) { printf("%s:\n", s); - for (int i=0; i