2016-06-30から1日間の記事一覧
前回の知見と繋がりながらもちょっとズレる発見があったのでメモします。note103.hateblo.jpまず前回の復習をしておくと、int型の数値をこんなふうにポインタで渡す、ということをやった場合。 #include <stdio.h> void foo(int *c, int *d) { printf("*c: %d\n", *c)</stdio.h>…
前回の知見と繋がりながらもちょっとズレる発見があったのでメモします。note103.hateblo.jpまず前回の復習をしておくと、int型の数値をこんなふうにポインタで渡す、ということをやった場合。 #include <stdio.h> void foo(int *c, int *d) { printf("*c: %d\n", *c)</stdio.h>…