Hi all,
This is my simple ansi C code:
Code:
   int         x, MAT[9]={};
   x = nodeinfo.nodenumber;
   switch(x) {   
        case '0':MAT[] = {1,1,2,1,0,0,0,0};       
                break;
        case '1':MAT[] = {1,1,2,2,3,1,0,0};
                break;
        case '2':MAT[] = {1,2,2,1,0,0,0,0};
                break;
        default:printf("no node available\n");
     }
But I'm getting this compiling error:

xx.c:12: error: expected expression before { token
xx.c:13: error: expected expression before { token


Can you please let me know what is wrong?

thanks.