// experi6d.c

#include <malloc.h>
#include <conio.h>
#include <stdio.h>
#include <bios.h>

struct OC
{
  int PortAddress;
  char onmask;
  char offmask;
  int *PortData;
};

void main(void)
{
  struct OC oc;
  struct OC *poc;
  struct OC OutputControl[24];
  struct OC *pOutputControl[24];

  int x = 1000;

  oc.PortData = &x;

  poc = &oc;

  oc.PortAddress = 100;

  poc->PortAddress = 10;

  printf("poc->PortAddress = %d\noc.PortAddress = %d\nx = %d\n*poc->PortData = %d\n*oc.PortData = %d\n"
  ,poc->PortAddress
  ,oc.PortAddress
  ,x
  ,*poc->PortData
  ,*oc.PortData);

} // end experi6d.c

