Skip to content

Instantly share code, notes, and snippets.

@frankie-yanfeng
Created January 9, 2020 06: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 frankie-yanfeng/bd48e3f6fa759176d429de077179af7f to your computer and use it in GitHub Desktop.
Save frankie-yanfeng/bd48e3f6fa759176d429de077179af7f to your computer and use it in GitHub Desktop.
void *
#include <stdio.h>
void func (void *pv)
{
char *pchar = pv;
*pchar = 'A';
}
int main()
{
char c;
func(&c);
printf("%c", c);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment