/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <string.h>
#include <stdio.h>

struct ab
{
   char a[4];
   char b[4];
};

int main()
{
   struct ab s;
   strcpy(s.a,"ABC");
   strcpy(s.b,"DEF");
   printf("%s %s\n",s.a,s.b);
   s.a[3] = 'X';
   s.a[4] = 'Y';
   printf("%s %s\n",s.a,s.b);
   return 0;
}
