blob: fa009af27e17e3f592fa8df74708fa2e04f86d0e [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
struct mytype {
int c;
int d;
};
union myunion {
int num;
char *str;
};
typedef struct mytype MyType;
int main()
{
struct mytype v;
MyType *v_ptr = &v;
union myunion u = {5};
v.c = u.num;
v.d = 10;
return v.c + v.d;
}