Answer:
Following are the statement in the C++ Programming Language.
//set character data type variable
char line[50];
//get character input from the user
cin.get(line, 50);
Explanation:
Following are the description of the statement.
- In the above statement, we set character data type array variable that is 'line' and its index value is '50' that means the following variable not contain more than 50 character elements.
- In the other line, we get character type input in the following variable 'line' from the user through the get() method.