Showpos

Question30

It is an error if an initializer list contains more initializers than there are elements in the array

True

Question31

Which of the following is the proper keyword to allocate memory?

New

Question32

What is the output of the program?

#include<iostream>

usingnamespace std;

int main() {

char *a = "matador";

cout << "hello " << a[0] << a[5] << a[2] << a[5];

return 0;} d. hello moto

Question33

Find the error(s) in the following code segment. The following code should print the values 1 to 10:

n = 1;
while (n < 10)

cout << n++ << endl;

. n = 1;
while (n < 11)

cout << n++ << endl;

Question34

Can a return statement be used into a void function?


Понравилась статья? Добавь ее в закладку (CTRL+D) и не забудь поделиться с друзьями:  



double arrow
Сейчас читают про: