Why is it not giving right output? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
15th Oct 2021, 4:21 PM
Nikhil Agrawal
Nikhil Agrawal - avatar
3 Answers
+ 2
Line 11 is the problem: scanf("%d""%d",&i,&j); I believe your intention is to input array values here. Instead, use: scanf("%d", &arr[i][j]);
15th Oct 2021, 4:43 PM
Brian
Brian - avatar
+ 1
Thanks Brian
16th Oct 2021, 10:26 AM
Nikhil Agrawal
Nikhil Agrawal - avatar
0
Printing the array is fine, reading storing it is not.
15th Oct 2021, 4:33 PM
Arturop
Arturop - avatar