Before asking, you can do small tests.
#include <stdio.h> int main() { char *str = "test"; printf("%d\n",*str); printf("%c\n",*str); // str[0] printf("%d\n",str); if (!str || !*str) { printf("%s",str); } return 0; }
Value ! - denial. With the exception of 0 each value is true for the if condition. Here str and *str return values ββthat are not 0 . So you can conclude.
source share