Bye Bye Moore

PoCソルジャーな零細事業主が作業メモを残すブログ

2019-01-04から1日間の記事一覧

Cのポインタでは*(hoge +3)とhoge[3]と3[hoge]は同じ結果になる

C

$ cat sample.c #include <stdio.h> int makeTitle(char str[]) { printf("\n\n###%s###\n\n", str); return 0; } int main() { char string[] = "Hello, world"; makeTitle("文字列"); printf("%s\n",string); printf("%s\n",(string + 7)); makeTitle("文字"); prin</stdio.h>…