60.1k views
1 vote
Which of the following operators cannot be overloaded?

a. cout << people[10];
b. cout << people[9].age;
c. cout << people[9].getage();
d. cout << people[9];

1 Answer

3 votes

Final answer:

The insertion operator, cout << , cannot be overloaded in C++.

Step-by-step explanation:

The correct answer is a. cout << people[10]; This is because << is the insertion operator used to display output on the console. While other operators can be overloaded to perform different functions or operations, the insertion operator cannot be overloaded in C++.

User Arno Tenkink
by
8.3k points