Skip to content

Instantly share code, notes, and snippets.

@MaxBareiss
Last active December 14, 2015 03:19
Show Gist options
  • Save MaxBareiss/5019766 to your computer and use it in GitHub Desktop.
Save MaxBareiss/5019766 to your computer and use it in GitHub Desktop.
RobotC static variable test
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