Skip to content

Instantly share code, notes, and snippets.

@bulislaw
Created April 24, 2020 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bulislaw/ee5e30a18ef821d64c0a3b52b1eea128 to your computer and use it in GitHub Desktop.
Save bulislaw/ee5e30a18ef821d64c0a3b52b1eea128 to your computer and use it in GitHub Desktop.
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