the error massage read as : " )" expected in the line of the prototype.
and declararion terminated incorrectly.
i 'm wondering where are the mistakes. thanks for help.
the code is
Code:int total (int [] (*)); int main() {int j,i; int [] (* ptr)[8]={ {6,6,6,6,6,6,6,6} , { 6,2,2,2,2,2,2,6, } , {6,3,1,0,1,1,2,7, } , { 6,6,5,0,1,5,6,6, } , {6,6,5,3,3,5,6,7, } , { 7,6,5,3,2,6,6,7, } , { 7,6,6,2,2,5,6,7, } , { 7,7,7,7,7,7,7,7,} , }; for(i=0;i<8;i++) { for(j=0;j<8;j++) { if(*(ptr[i]+j)<total(ptr[i])) printf("%c",219) ; else printf(" "); printf("\n") } ; } ; return 0; } int total(int [](*p)) { int sum=0,i; for(i=0;i<8;i++) sum+=*(p+i); return (sum/8); }