Final answer:
In C++, to store a full name including spaces into a variable called FULLNAME, use getline combined with cin. The correct statement is getline(cin, FULLNAME), as options a), b), and d) are incorrect for capturing full names.
Step-by-step explanation:
To store a user's full name in a variable called FULLNAME in C++, you should use getline function combined with cin. The reason for this is that the user's full name can have spaces, and using cin alone will only capture input up to the first space. Hence, choices a), b), and d) are incorrect, and choice c) is not a standard function in C++ for this purpose. Here's how you can correctly ask for a user's full name:
#include <iostream>
#include <string>
using namespace std;
int main() {
string FULLNAME;
cout << "Please enter your full name: ";
getline(cin, FULLNAME);
cout << "Hi " << FULLNAME << "!" << endl;
return 0;
}
The getline(cin, FULLNAME) statement will correctly store the user's full name including spaces into the FULLNAME variable.