Which of the following should a program use to store the name of any city in a

Question:

Which of the following should a program use to store the name of any city in a string variable named cityName? 

a. cin >> cityName; 

b. cin(cityName);

c. getline(cityName, cin); 

d. getline(cin, cityName);

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: