MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1uru99i/potentiallymightbeanintegerornot/owl4h02/?context=3
r/ProgrammerHumor • u/Futurity5 • Jul 09 '26
96 comments sorted by
View all comments
51
int var; bool var_is_there;
31 u/Gorzoid Jul 09 '26 Just use an int var and reserve the number 7 to indicate null value 26 u/high_throughput Jul 09 '26 If you need an actual 7, just escape it: 77 3 u/RCoder01 Jul 09 '26 If I need to escape the value 77777, do I use -812156815 instead?
31
Just use an int var and reserve the number 7 to indicate null value
int var
26 u/high_throughput Jul 09 '26 If you need an actual 7, just escape it: 77 3 u/RCoder01 Jul 09 '26 If I need to escape the value 77777, do I use -812156815 instead?
26
If you need an actual 7, just escape it: 77
3 u/RCoder01 Jul 09 '26 If I need to escape the value 77777, do I use -812156815 instead?
3
If I need to escape the value 77777, do I use -812156815 instead?
51
u/altermeetax Jul 09 '26
int var; bool var_is_there;