Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#include <stdio.h>
int myGlobalVar = 3;
float myGlobalVar2 = 9.f;
void doSomething();
int main(int argc, const char * argv[])
{
doSomething();
return 0;
}
void doSomething()
{
printf("%i\n", myGlobalVar);
printf("%f\n", myGlobalVar2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment