My code is working properly on CB- IDE but it gives segmentation fault while submitting on the Course Challenge

answer )https://ide.codingblocks.com/s/253650
problem ) CanYouReadThis?


Now, it is working fine, the only problem was in the for loop it should be β€œi < s.length” and not β€œi < s.length -1”.

1 Like