0 votes 0 votes here j++ executes only if s[i]==c[j] , and i++ executes always so when s= “response” after while loop i will be 8 but j will be 0 so it should be false but given answer is- true please tell me where i am wrong?? garimanand asked Dec 23, 2018 garimanand 496 views answer comment Share Follow See 1 comment See all 1 1 comment reply Magma commented Dec 23, 2018 reply Follow Share yeah it's False False j = 0 C [j] = c if(! 'c') // not execute go to the else part 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Answer: False, False It would have been True, True if if(s[i]==c[j]) i++; j++; snaily16 answered Jan 14, 2019 snaily16 comment Share Follow See all 0 reply Please log in or register to add a comment.