Home > Back-end > Ask what was wrong with the program
Ask what was wrong with the program
Time:06-06
Beside the computer is not an error, I can not understand wq # include The sum (int (* p) [3]) { Int I, j, sum=0; for(i=0; i<5; I++) {the for (j=0; J<3; J++) {sum=sum + * (* (p + I) + j). } Sum=0; Printf (" % d lines and is: % d ", sum); } } Int main () {int arr [5] [3]={1, 2, 3}, {4 and 6}, {7,8,9}, the final three {10}, {13,14,15}; The sum (arr); Printf (" a=% db=% dc=% d ", a, b, c); return 0; }
CodePudding user response:
Have Chinese comma, check all punctuation marks
CodePudding user response:
The first printf string double quotes a comma missing on the right