![](/images/backgrounds/286549/hp-sunsoft-pascal-4-0-users-manual-549395133x1.png)
6
The C main program, | #include <stdio.h> |
VarRecMain.c |
|
| struct vlr { |
| char tag; |
| union { |
| struct { |
| char ch1, ch2; |
| }a_var; |
| struct { |
| char flag; |
| }b_var; |
| struct { |
| int ALIGN; |
| }c_var; |
| }var_part; |
| }; |
| extern void VarRec(struct vlr *); |
| int main(void) |
| { |
| struct vlr *x; |
| x = (struct vlr *)malloc(sizeof(struct vlr)); |
| |
| |
| |
| VarRec(x); |
| printf(" %c \n", |
| } |
|
|
The commands to compile and execute VarRec.p and VarRecMain.c
hostname% pc
Z
The | 109 |