reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
#include <stdio.h>

struct SubStruct
{
  int a;
  int b;
};

struct MyStruct
{
  int first;
  struct SubStruct second;
};

int
main()
{
  struct MyStruct my_struct = {10, {20, 30}};
  struct MyStruct *my_pointer = &my_struct;
  printf ("Stop here to evaluate expressions: %d %d %p\n", my_pointer->first, my_pointer->second.a, my_pointer);
  return 0;
}