Hey there! My name is Arsh. Across the cyberspace, you’ll also find me as @RinkiyaKeDad in many places. I enjoy building software, technical content, and communities!
Hey there! My name is Arsh. Across the cyberspace, you’ll also find me as @RinkiyaKeDad in many places. I enjoy building software, technical content, and communities!
I think you can use char as a Boolean. '\0' will be treated as false and all other characters as true if I'm not mistaken.
isn't it easier to use
char false = 0;
?It would work as expected for most cases but I (personally) would prefer to avoid type conversion.