summaryrefslogtreecommitdiff
path: root/c,cc/struct.c
blob: 4111526ccffcb6fda5ccacfd00e257394d7d01f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <stdio.h>


struct bla {
  int a, b;
};

int main(void)
{
  struct bla test, *ptest;
  ptest = &test;

  ptest->a = 3;
  ptest->b = 5;

  printf("%d-%d\n", ptest->a, ptest->b);

  return 0;
}