Skip to content

Instantly share code, notes, and snippets.

@glina126
Created September 11, 2023 16:02
Show Gist options
  • Select an option

  • Save glina126/0ebad4e045bc3e3a7175c1de4fb46e40 to your computer and use it in GitHub Desktop.

Select an option

Save glina126/0ebad4e045bc3e3a7175c1de4fb46e40 to your computer and use it in GitHub Desktop.
# include <stdio.h>
void fun(int *ptr)
{
*ptr = 30;
}
int main()
{
int y = 20;
fun(&y);
printf("%d", y);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment