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...

_____ is used to temporarily hold small units of program instructions and data immediately before, during, and after execution by the central processing unit (CPU).

A. Main memory B. A register C. The control unit D. The motherboard

Computer Science & Information Technology

The ________ command places a copy of the selected text or object in the Clipboard

Fill in the blank(s) with correct word

Computer Science & Information Technology

After you select a cell with an error indicator, you can click the Error Checking _______ to display additional information about the possible error and determine if further action is needed.

A. button B. icon C. ScreenTip D. menu

Computer Science & Information Technology

The type of media that uses laser technology to store data and programs is ________.

A. optical disc B. flash C. hard disk D. solid state

Computer Science & Information Technology