cin.get() is used for accessing character array. It includes white space characters. Generally,
cin with an extraction operator (>>) terminates when whitespace is found. However, cin.get() reads a string with the whitespace.
Syntax:
cin.get(string_name, size);
Example 1:
Input:
Geeks for Geeks
Output:
Geeks for Geeks
Example 2: