From 0010907e6a831f50f00bf27ee0d96a5ee2429ce5 Mon Sep 17 00:00:00 2001 From: TiagoRG Date: Fri, 22 Sep 2023 12:10:38 +0100 Subject: [PATCH] [AED] aula01 ProgA fix --- 2ano/1semestre/aed/aula01/ProgA | Bin 15632 -> 15600 bytes 2ano/1semestre/aed/aula01/ProgA.c | 27 ++++++++------------------- 2 files changed, 8 insertions(+), 19 deletions(-) diff --git a/2ano/1semestre/aed/aula01/ProgA b/2ano/1semestre/aed/aula01/ProgA index b52d5b2f281b13129659f9b14b31b19833bffe58..7e6ec0018e52459f06579fd6603686b3f5fadbfb 100755 GIT binary patch delta 666 zcmbPG^`UZt24lfQ&HJ31%nV?lIa!cVpOb|V!eiO&$>`3=X#(Lfm`t9@^j_px@Xb>u zu36t^{+(xGc=-9d@MgP!&2yOV^Du2^oLnpLP_6lmfk$WU3y;py2c4mJJi1+h%wrzC ztX+Hz3?7}wcYsWLadPqjL3PV0WT7el{{L@w{lnPp`p4S!PR)t^Tp)#UK+y>&4~Kem zK1DKhvX+n=H&o%F2@_%`w+I!4@8SV!fY=qu3%2XUT%hhW{`Uv?HC;jY0uVp&==D9| z(d#+^s{9<#O)owI)d9s0AQ>S6H6m)Vjj#lh#^23h!mD^DUtn{Xq#&Vd0JMn}h-z=rpe5VyCxf2>T}8ngY^Op&a`Z2 tG@1O-QeV(R0U`#Y_iQ$_vS$JYLZOX0=L;iffB3SkRpoG_7)PpCv@RjIY0BS;9C6&E1)__S*>{?b!B`_sL0wI}6)PXu(q(9YGHwPxie|8lbtt3> z`;J>Y|z`@(N5b4?fNZ8^q-A=Nj>QvLnYGup^qZIx?2UpCstDpy&Q}sinJ*{cCpx;FD z`-G6w%!Wvd{|*X}1;0-^;Wf22{-jCujXatmt$|vBJ7AjqWE84?_TAx>K(+lZ( -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