+ 1

Exclamation mark in C?

What does exactly mean when they use the exclamation mark before the (function or whatever )? Like this example : (!strcmp(old_ct.name,cts[i].name)&& !strcmp(old_ct.prenom,cts[i].prenom))

30th Jun 2022, 6:46 PM
Kawtar
Kawtar - avatar
2 odpowiedzi
+ 7
! negates the statement: !true == false
30th Jun 2022, 6:58 PM
Lisa
Lisa - avatar
+ 1
Logical operatior strcmp return 0 if both string are equal and !0 is 1 && and logical operator which return true if both condition are true ..
1st Jul 2022, 3:01 AM
Mihir Lalwani
Mihir Lalwani - avatar