我写了以下代码我正在解决一个难题,我在编译这部分代码时
#include <stdio.h>
int main ()
{
int a[10],b[10],c[10];
int i,j,k,l;
a[10]={"21","33","12","19","15","17","11","12","34","10"};
b[10]={"10","15","9","13","16","21","15","32","29","7"};
c[10]={"11","8","3","6","1","4","6","20","19","3"};
l=sizeof(a)/sizeof(a[0]);
for (i=0;i<=l;i++)
{
}
}
给我错误
array.c: In function ‘main’:
array.c:7:8: error: expected expression before ‘{’ token
array.c:8:8: error: expected expression before ‘{’ token
array.c:9:8: error: expected expression before ‘{’ token
为什么这里会出现错误?