Computer Science SLO Based Key Point Notes

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

Unit 3: Object-Oriented Programming in C++


3.3.1 The cout Statement

It is used to display text or values on the 
                    cout<<“character string”/variable;
  • “<<“ is called the insertion operator which displays the contents of the character string or the value stored in a variable on the screen.
  • The insertion operator may be used more than once in a single statement.
Example

#include <iostream.h>
#include <conio.h>
void main()
{
            crlscr();
            int a=12;
            cout<<“The value stored in a is “<<a;
            getch();
}


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


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

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



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