2022-06-05から1日間の記事一覧

day4_ポインタと文字列リテラル

配列として指定する文字列リテラルと、ポインタとして指定する文字列リテラルの違いについて int func_pntstr() { char str[] = "LIST"; char* strP = "POINTER"; printf("%s\n", str); //LIST printf("%s\n", strP); //POINTER return 0; } 正直やってるこ…