What seems to be wrong in my code? | Sololearn: Learn to code for FREE!


What seems to be wrong in my code?

Need help because i'm at my wits end trying to figure this out. Im relatively new to c programming and i would wanna know why it prints array[1] for the second time at the end. https://code.sololearn.com/cerSA574n7fS/?ref=app

10/1/2020 12:44:20 PM

Marc Stephen Gabres

2 Answers

New Answer


At array2[0] your value is exceeding size 27. So you can get undefined behaviour in that case.. Remove a dot or char from that string value....


thanks a lot , solved now