Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
Forked from bcho/8.012.c
Created November 6, 2012 09:11
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 fanzeyi/4023621 to your computer and use it in GitHub Desktop.
Save fanzeyi/4023621 to your computer and use it in GitHub Desktop.
#include <stdio.h>
void func(char *s, char *t);
int main()
{
char s[] = "time";
int t;
t = 10;
func(s, t);
printf("%d", t);
return 0;
}
void func(char *s, int t)
{
t = 100;
printf("%d", t);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment