Mercurial > hg > CbC > CbC_examples
view selftype.c @ 17:a4f44624a253
asm longjmp (can return correct address but return value is wrong)
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Jan 2016 06:01:43 +0900 |
parents | bacef8675607 |
children |
line wrap: on
line source
/* struct node { int num; struct node *child; // struct node **array_node; }; */ #include <stdio.h> struct node { int num; selftype *child; }; int main() { struct node n, nc; n.num = 1; nc.num = 2; n.child = &nc; printf("n.num = %d\n",n.num); printf("n.child.num = %d\n",n.child->num); return 0; }