Created
March 15, 2018 04:10
-
-
Save jonluca/5c6d9aa75cf801bb25b3b6762c9d780f to your computer and use it in GitHub Desktop.
Testing One
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
int mVar = 0; | |
void setVarToOne(int* mVar){ | |
if(mVar) *mVar = 1; | |
} | |
setVarToOne(&mVar); | |
ASSERTEQ(mVar,1); //true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment