Last active
June 25, 2020 12:02
-
-
Save Jay-flow/274f07cc505a5a53be82787b095c3312 to your computer and use it in GitHub Desktop.
How the computer handles variables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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