#include <stdio.h>
int main() {
char buffer[] = "달칠달칠";
int dalchil_size = sizeof(buffer);
printf("달칠 배열 크기는 %d 바이트 임미다\n", dalchil_size);
return 0;
}
soyeomul@thinkpad-e495:~/test6$ ls -l
total 8
-rw-rw-r-- 1 soyeomul soyeomul 200 11월 17 11:34 bof.c
-rw-rw-r-- 1 soyeomul soyeomul 207 11월 17 11:31 bof.c~
soyeomul@thinkpad-e495:~/test6$ gcc bof.c
soyeomul@thinkpad-e495:~/test6$ ls
a.out*bof.c bof.c~
soyeomul@thinkpad-e495:~/test6$ ./a.out
달칠 배열 크기는 13 바이트 임미다
soyeomul@thinkpad-e495:~/test6$
*달칠달칠*
ㄴㄴㄴ