Last active
December 14, 2015 03:19
-
-
Save MaxBareiss/5019766 to your computer and use it in GitHub Desktop.
RobotC static variable test
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 doStuff(){ | |
static int b = 3; | |
return b++; | |
} | |
task main() | |
{ | |
while(true) // Infinite loop: | |
{ | |
writeDebugStreamLine("%d",doStuff()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment