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

+3

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

+3

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

+3

Thank you ❤️

+3

`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.