#include <stdio.h>


int main(void)

{

int text[20];

int i = 0;

printf("put the word : ");

scanf_s("%s", text, sizeof(text));


while (text[i] != '\0')

i++;


printf("%s \n", text);

printf("it's made of %d letters \n",i);

return 0;


}


뭐가 잘못됬길래 i 값이 항상 28로 일정하게 나오지?