Skip to content

Tag Archives: Operators

Operators are the foundation of any programming language. Thus the functionality of the LISP programming language is incomplete without the use of operators. We can… Read More
In this article, we will discuss the unformatted Input/Output operations In C++. Using objects cin and cout for the input and the output of data… Read More
Prerequisite: Operator Overloading in C++, Types of Operator Overloading When an object calls an operator function by passing an argument and the returned value of… Read More
Short-circuiting is one of the optimization steps of the compiler, in this step unnecessary calculation is avoided during the evaluation of an expression. Expression is… Read More
= operator The “=” is an assignment operator used to assign the value on the right to the variable on the left.  For example: a… Read More
The double colon (::) operator, also known as method reference operator in Java, is used to call a method by referring to it with the… Read More
Given two non-negative integers a and b. The problem is to check whether the two numbers differ at one bit position only or not.Examples:   Input… Read More
C++ comes with libraries that provide us with many ways for performing input and output. In C++ input and output are performed in the form… Read More
The decimal equivalent of 1/3 is 0.33333333333333…. An infinite length number would require infinite memory to store, and we typically have 4 or 8 bytes.… Read More
What is the output of the following program : i = 0 while i < 3:        print i        i++        print i+1 (A) 0 2 1… Read More
Which operator is overloaded by the or() function? (A) || (B) | (C) // (D) / Answer: (B) Explanation: or() function overloads the bitwise OR… Read More
Which function overloads the >> operator? (A) more() (B) gt() (C) ge() (D) None of the above Answer: (D) Explanation: rshift() overloads the >> operatorQuiz… Read More
What is the output of the following code : print 9//2 (A) 4.5 (B) 4.0 (C) 4 (D) Error Answer: (C) Explanation: The ‘//’ operator… Read More
Predict the output of the following program. class Test {     boolean[] array = new boolean[3];     int count = 0;        void set(boolean[] arr, int x)… Read More
class demo {     int a, b, c;     demo(int a, int b, int c)     {         this.a = a;         this.b = b;     }            demo()     {         a… Read More

Start Your Coding Journey Now!