I have been trying to figure this out fir hours and I can't.
I'm trying to write code that if the user enters a string longer than 10 characters, only the first 10 characters are stored in an array plus the null byte and rest of the characters are ignored. Please give me your suggestions.
Thank You!