(This exercise is for those who have studied the optional section entitled
“File Names as Input.”) Suppose you are given the following string variable declaration and input statement.
#include <iostream>
using namespace std;
// ...
char name[21];
cout >> name;
Suppose this code segment is embedded in a correct program. What is the
longest name that can be entered into the string variable name?