In the previous recipe, we defined two structure variables because we wanted to show that if data entered is larger in size than the member field allows, it will result in ambiguous output; and if data is entered within the capacity of the receiving variables, it will generate the correct output.
In the following recipe, we don't need two structure variables as we will be using the fgets function to address our concern. This function never results in a buffer overflow.