SyntaxFix
Write A Post
Hire A Developer
Questions
The following code can be used to read the input string from a user. But it's space is limited to 64.
char word[64] = { '\0' }; //initialize all elements with '\0' int i = 0; while ((word[i] != '\n')&& (i<64)) { scanf_s("%c", &word[i++], 1); }