S
sapnsapn
Hi folks,
I am looking at an application written in C some 10+ years ago. There
is a lot of such if statements:
if (my_number) {....} else {...}
Here, my_number is an unsigned int. What exactly is the "if" looking
for to evaluate? Is it the existence of a numerical value or a non-zero
value or just any positive value? I am not a C programmer by trade and
hence this question.
LOL,
Sapn
I am looking at an application written in C some 10+ years ago. There
is a lot of such if statements:
if (my_number) {....} else {...}
Here, my_number is an unsigned int. What exactly is the "if" looking
for to evaluate? Is it the existence of a numerical value or a non-zero
value or just any positive value? I am not a C programmer by trade and
hence this question.
LOL,
Sapn