Question: main.c: In function 'main':main.c: 2 7 : 1 0 : error: 'average _ even' undeclared ( first use in thisfunction ) 2 7 I if

main.c: In function 'main':main.c:27:10: error: 'average_even' undeclared (first use in thisfunction)27 I if(*(average_even+i)%6==0){main.c:27:10: note: each undeclared identifier is reported only once foreach function it appears inmain.c:28:54: error: expected ';' before ')' token28 I printf("average_even[%d]=%d
", i, average_even[i]));I|main.c:28:54: error: expected statement before ')' tokenmain.c:31:41: error: 'average_odd' undeclared (first use in thisfunction)31| printf("average_odd[%d]=%d
",i,average_odd[i]));main.c:31:56: error: expected ';' before ')' token31 I printf("average_odd[%d]=%d
",i,average_odd[i]));|^Imain.c:31:56: error: expected statement before 'J' tokenmain.c: At top level:main.c:34:5: error: expected identifier or '(' before 'if'341 if(sum_even)>20main.c:36:5: error: expected identifier or '(' before 'else'36 I else {l A~nn .main.c:39:5: error: expected identifier or '(' before '}' token391}main.c:40:5: error: expected identifier or '(' before 'return'401 return 0;
main.c: In function 'main':main.c: 2 7 : 1 0 :

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!