Question: Exercise 1: Complete the program below, which contains a function read line that reads a line of text from the user The function should read

Exercise 1: Complete the program below, which contains a function read line that reads a line of text from the user The function should read characters from the user using getchar() into a provided character array until one of the following conditions occurs. The user enters a n character (do not store the In into the array) The array is full (that is, size-1 characters have been entered) Once either condition occurs, the function will add a null terminator to the end of the array and return the total number of characters read (not including the In, if applicable) #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
