Question
Easy

In C++, << operator used for shifting bits can also be used for:

1
Displaying values
2
Addition
3
Increment
4
Decrement
Question Details
Time to Solve: 12
Exam: HTET
Level/Paper: Level 3
Chapter: Operating Systems & Software Concepts
Topic: Programming Languages
Correct Answer
Option A
Explanation

The correct option is (1): In C++, the double left-angle bracket symbol (\<\<) has a dual purpose due to a powerful feature called operator overloading. While its original, built-in function is the bitwise left shift operator, this operator is famously overloaded for use with stream classes, most notably std::cout, where it is known as the stream insertion operator. When this overloaded form is used in an expression like `std::cout <<…Read More