0

Can anyone explain the defect in the given program.thanks in advance.

code is written in c. https://code.sololearn.com/cx7jKDrNZxzv/?ref=app

10th Mar 2018, 2:08 PM
Abhishek Singh Negi
Abhishek Singh Negi - avatar
1 Answer
+ 9
Fixed code: https://code.sololearn.com/cba3E7zPzEyy/#c Problems: 1. There were some invisible characters (this happens when the code is pasted from another source) 2. Use if(flag==0) instead of if(flag=0) 3. There were mismatched curly braces 4. i, j should be declared before starting the loops
10th Mar 2018, 3:15 PM
Shamima Yasmin
Shamima Yasmin - avatar