C shorthand IF aka Turnary Operator
So I was playing around with C trying to see if I remember it because it has been a while since I wrote in that language. As I was playing around with it I started to remember some lazy methods for coding, so I figured I would put it here for my future reference, and others I guess.
This is going to be a short write since this is just for me to come back to, and the example doesn’t really do much, so don’t expect to be blown away. It just asks for two numbers and prints the biggest number to a file… pretty useless lol, but in conjunction with something else it could be useful.
LINE 20 IS THE TURNARY OPERATOR
Let me know what you think of this article on twitter @martinoj2009!