Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 3
What is the meaning of this
!strcmp that means I am talking about 'not' symbol
3 Answers
+ 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.