What is the meaning of this | Sololearn: Learn to code for FREE!


What is the meaning of this

!strcmp that means I am talking about 'not' symbol

4/26/2021 7:25:31 PM

vivek_sai 0449

3 Answers

New Answer


Bluebuds_ckmpany If strcmp returns true then !strcmp will return false !true = false !false = true


Thank you ❤️


`strcmp()` returns zero when contents of two arguments given were similar http://www.cplusplus.com/reference/cstring/strcmp/ The expression `!strcmp(...)` evaluates to true when `strcmp()` returns zero, because zero represents false, and any non zero value represents true, and the logical NOT operator inverse the evaluation result. !<zero> means true, !<non zero> means false.