Indicate the contents of these variables after each of the following input operations is performed. Assume the file accessed by indata consists of the data shown and that each lettered group of operations occurs at the beginning of a program before any other data have been taken from the file.
int a;
double b;
char c;
string name;
55 45.36Smith Jones.....
A.
indata >> a >> b >> name;
B.
indata >> b >> a >> name;
C.
indata >> a >> name >> c;
D.
indata >> a;
getline ( indata, name );
A.
a = 55, b = 45.36, name = "Smith"
B.
a = 45, b = 55.0, name = ".36"
C.
a = 55, name = "45.36", c = 'S'
D.
a = 55, name = "45.36"
Computer Science & Information Technology
You might also like to view...
Which type of selector is specified by placing a # symbol in front of the selector name?
a. tag b. first c. class d. id
Computer Science & Information Technology
An important characteristic of third-generation programming languages is that the source code can be written with simple tools, such as a word processor, and this code can be easily understood by programmers.?
Answer the following statement true (T) or false (F)
Computer Science & Information Technology