Given the input

Given the input:

Samantha 168.5 46

and the variable declaration: (2, 8)

double dec = 2.7;

int num = 45;

string str = “**”;

What is the output, if any? Use the same input for each part.

a. cin >> str >> dec >> num; cout < str=””>< “=”” “=””>< dec=””>< “=”” “=””>< num=””><>

b. cin >> str >> num >> dec; cout < str=””>< “=”” “=””>< dec=””>< “=”” “=””>< num=””><>

c. cin >> dec >> str >> num; cout < str=””>< “=”” “=””>< dec=””>< “=”” “=””>< num=””><>

Posted in Uncategorized

Leave a Reply