Q.

ਇਨ੍ਹਾਂ ਵਿੱਚੋ ਕਿਹੜਾ ਸਹੀ ਹੈ, ਜੇਕਰ ਅਸੀਂ ਲਿਖਦੇ ਹਾਂ strcmp (s1,s2) ਕਿਹੜਾ ਮੁੱਲ ਵਾਪਿਸ ਹੁੰਦਾ ਹੈ।
Which of these is correct, if we type strcmp (s1, s2) which value is returned?

Chapter-1 | String Function | String Function

1) /<0 when s1<s2
2) /=0 when s1=s2
3) />0 when s1 > s2
4) /All of these

Ans.) /All of these