2017-11-20から1日間の記事一覧
C言語の簡単なプログラムを作って構造体とポインタの挙動を調べているんだけど、やっぱりよくわからないところが出てきた。 まず、こう書いてみる。 #include <stdio.h> #include "test.h" #include <string.h> #include <stdlib.h> int zero = 0; typedef struct{ int *x; } X; typedef s</stdlib.h></string.h></stdio.h>…