I have a small uni task where I have to switch lower case characters to uppercase characters from a user input within an array, up to a max of 20 characters. if the user inputs a number of characters that is less than the maximum specified, i was wondering how you would go about printing these without printing the garbage data from the array. the only way I can think of doing this is by having the user specify how many they are going to enter, and looping over that number of indexes within the array. im fairly new to c programming and would appreciate any and all help