Computer Science SLO Based Key Point Notes
👉👉👉 Computer Science 12th Class Notes (Main Page)
************************************
Unit 3: Object-Oriented Programming in C++
3.4.2 UNARY, BINARY AND TERNARY OPERATORS
There are three types of operators in C++ which are unary, binary, and ternary operators.
The operator that works on a single operand is known as a unary operator. Unary operators are -, ++, --, and the logical operator !.
Some examples of unary operators area= -b;k++;--X;The operators that work on two operands are known as binary operators. Binary operators are - ,+,*,/, %, and logical operators && and II.
Some examples of binary operators area=b+c; z=x*y;k=d%e;
The conditional operator (?;) is known as a ternary operator since it has three parts. These three parts are a condition and two expressions. The condition is evaluated and based on its result one of the two expressions is executed.
The operator that works on a single operand is known as a unary operator. Unary operators are -, ++, --, and the logical operator !.
Some examples of unary operators are
a= -b;
k++;
--X;
The operators that work on two operands are known as binary operators. Binary operators are - ,+,*,/, %, and logical operators && and II.
Some examples of binary operators are
a=b+c;
z=x*y;
k=d%e;
The conditional operator (?;) is known as a ternary operator since it has three parts. These three parts are a condition and two expressions. The condition is evaluated and based on its result one of the two expressions is executed.
👇👇👇👇👇👇👇👇👇👇👇👇
************************************👉👉👉 Computer Science 12th Class Notes (Main Page)
************************************
(National Book Foundation - As Federal Textbook Board, Islamabad Based on National Curriculum Pakistan 2026-2027 and Onward prescribed by Federal Board of Intermediate and Secondary Education, Islamabad, and All Pakistan Boards)
(National Book Foundation - As Federal Textbook Board, Islamabad
Based on National Curriculum Pakistan 2026-2027 and Onward prescribed by Federal Board of Intermediate and Secondary Education, Islamabad, and All Pakistan Boards)
{Contact WhatsApp # +923339719149 for Class-XII Computer Science Complete SLO-Based Key Points notes in pdf format as well as in PowerPoint Presentation for preparing/delivering the Lectures}
Note: Write me in the comments box below for any query and also Share this information with your class-fellows and friends.
0 Comments
Note: Write me in the comments box below for any queries and also Share this information with your class-fellows and friends.