Created
June 6, 2016 02:17
-
-
Save conleec/3f28ae0c9030378167f891906b670c39 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Stuff to remember |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Remember the Ternary Operator
int minutesPerPound = isBoneless ? 10 : 15;
In this case, if true then assign 10, else assign 15.
REMEMBER THIS
Global Variables and Static Variables
Looping Notes
break
stops execution in the middle of the loopcontinue
skips to the next iteration of the loop (INTERESTING)Example of passing arguments via "reference"
Structs in C
This is an example of using defining a
struct
with atypedef
as per page 76 in BNR 2nd edition