Skip to content

Instantly share code, notes, and snippets.

@develop7
Created March 26, 2012 07:04
Show Gist options
  • Save develop7/2203584 to your computer and use it in GitHub Desktop.
Save develop7/2203584 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
typedef struct SStudent{
int id;
char *name;
float percentage;
} TStudent;
int main() {
TStudent x, *p;
x.id = 19;
p = (TStudent*)&x;
scanf("%d", &x.id);
scanf("%d", &x.id);
printf("%d\n", x.id);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment