Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
c++100%.docx
Скачиваний:
0
Добавлен:
01.03.2025
Размер:
56.25 Кб
Скачать
  1. What (if anything) prints when the following statement is performed?Assume the following variable declarations: char s1[ 50 ] = "jack"; char s2[ 50 ] = "jill"; char s3[ 50 ]; cout << strcat( strcat( strcpy( s3, s1 ), " and " ), s2 ) << endl;

    • jack and jill

  2. What (if anything) prints when the following statement is performed?Assume the following variable declarations: char s1[ 50 ] = "jack"; char s2[ 50 ] = "jill"; char s3[ 50 ]; cout << strlen( s1 ) + strlen( s2 ) << endl;

    • 8

  3. What (if anything) prints when the following statement is performed?Assume the following variable declarations: char s1[ 50 ] = "jack"; char s2[ 50 ] = "jill"; char s3[ 50 ]; cout << strlen( s3 ) << endl;

    • 13

  4. When used, the _________ stream manipulator causes positive numbers to display with a plus sign.

    • showpos

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]