Created
April 24, 2020 15:29
-
-
Save bulislaw/ee5e30a18ef821d64c0a3b52b1eea128 to your computer and use it in GitHub Desktop.
This file contains 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
void set_array(int array[4]); | |
void set_int(int x); | |
//--------------------------- | |
int main(void) | |
{ | |
int a = 10; | |
int b[4] = {0, 1, 2, 3}; | |
set_int(a); | |
set_array(b); | |
printf("%d %d\n", a, b[0]); | |
} | |
void set_Array(int array[4]) | |
{ | |
array[0] = 22; | |
} | |
void set_int(int x) | |
{ | |
x = 22; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment