Skip to content

Instantly share code, notes, and snippets.

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