Which of the following will print out the value in str?

char str[30];
cin >> str;
a. cout << str;
b. for(int i=0;i<30;i++)
cout << str[i];
c. int i=0;
while(i<30 && str[i] != '\0')
cout << str[i];
d. All of the above
e. A and B
f. A and C

f. A and C

Computer Science & Information Technology

You might also like to view...

If a VM is given exclusive access to hardware devices on the host computer, what new Windows Server 2016 feature is being utilized?

A. Selective Device Assignment B. Discrete Device Assignment C. Primary Device Allocation D. Virtual Device Assignment

Computer Science & Information Technology

A personal or work-related activity that you want to keep track of until it is complete is a:

A. Task. B. Meeting. C. Conversation. D. Event.

Computer Science & Information Technology