• + 1 comment

    I'm using C language. But I don't know how to input a string of unknown length. For example say user input a string, "Have a good day!", how should the programm save enough space for the string. What if the input string length exceeds the declared size of the character array in the code.