Computer Scinece SLO Based Key Point Notes

👉👉👉 Computer Science 12th Class Notes (Main Page)

************************************

Unit 3: Object-Oriented Programming in C++


3.4.4 Expression in C++

  • A combination of operators and operands is called Expression.
  • Operands may be variables, constants, or both.

1. Arithmetic Expression:

  • A combination of Arithmetic operators and numeric constants/variables is called an arithmetic expression.
  • In a C program, the arithmetic expression is used to calculate the value of an arithmetic formula. 
Examples:
         a + b;
         34 – 22;

2. Relational Expression:

  • An expression that contains a relational operator to compare values of the same type is called a relational operator.
  • It is used to create conditions in programming.

3. Compound or Logical Expression:

  • An expression that combines two or more conditions using a logical operator is called a compound expression.


👇👇👇👇👇👇👇👇👇👇👇👇


************************************
👉👉👉 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) 

{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.