Random Programming Concepts

I am going through another programming book just working on my fundamentals.

Here are some random concepts that popped out to me. 

0 = false

When you declare a varialbe, you declare the type, then the name.

You can put an expression into a BOOL variable. 

Watch out for false positives when testing else if statements.  

ternary operator is the same as a conditional operator
The ternary operator's form is
     variable = (test true or false) ? if true value : if false value

returning 0 in main is returning exit success.  Meaning everything went ok. 

Leave a Reply

Your email address will not be published.