Skip to content

Instantly share code, notes, and snippets.

@Jay-flow
Last active June 25, 2020 10:56
Show Gist options
  • Save Jay-flow/3b8111373391fea5bd113ad99e5f831f to your computer and use it in GitHub Desktop.
Save Jay-flow/3b8111373391fea5bd113ad99e5f831f to your computer and use it in GitHub Desktop.
How the computer handles variables
#include <stdio.h>
int main(void) {
//this is a local variable.
int a = 10;
if (1) {
int a = 3
}
printf("%d", a);
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment