1.

Pick out the correct statement.(a) Increment operator ++ adds 1 to its operand(b) Increment operator ++ adds 2 to its operand(c) Decrement operator ++ subtracts 1 to its operand(d) Decrement operator ++ subtracts 3 to its operandI got this question by my college director while I was bunking the class.Asked question is from Increment and Decrement topic in section Source Files, Classes and Operator Overloading in C++ of C++

Answer»

Right option is (a) INCREMENT OPERATOR ++ ADDS 1 to its operand

For EXPLANATION: Increment operator are used to increase the values of any integer variable by 1.



Discussion

No Comment Found

Related InterviewSolutions