I am learning C from a textbook, and I stumbled onto the code of a function, where the following part had little explanation to what it does. It looked something like this:
int func(char *a, char *b) {
if(!a || !b)
return 0;
return 1;
}
My understanding is it checks that a
and b
are not null? Is this correct? Any help is welcome for this beginner :)