With Bash you can do a simple variable test like this
$ [ $foo ]; echo $?
1
$ foo=bar
$ [ $foo ]; echo $?
0
The expression is true if and only if the argument is not null.
What would be a similar test with C?
Edit
Lets say an int type for argument sake.
In general, there is implicit boolean conversion in C. So all of the following will print “bad”: