Skip to content

Instantly share code, notes, and snippets.

@Jay-flow
Last active June 25, 2020 12:02
Show Gist options
  • Save Jay-flow/274f07cc505a5a53be82787b095c3312 to your computer and use it in GitHub Desktop.
Save Jay-flow/274f07cc505a5a53be82787b095c3312 to your computer and use it in GitHub Desktop.
How the computer handles variables
#include <stdio.h>
void add(int a, int b) {
a = a + b;
}
int main(void) {
int a = 7;
add(a, 10)
// print: a = 7
printf("%d\n", a);
system("pause");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment