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

CodePudding user response:

The fourth row, the first comma are in Chinese

CodePudding user response:

reference 1/f, 636 f6c696e reply:
have Chinese comma, all check the punctuation

Ok thank you thank you thank you thank you!!!

CodePudding user response:

refer to the second floor SuperDay response:
first printf string a comma missing in double quotation marks the right

Thank you thank you! Super thanks!!!!!

CodePudding user response:

reference SuperDay reply: 3/f
the fourth row, the first comma is Chinese

Thank you!!!!!!!!!!!!!

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related