12th Class (HSSC-II) Computer SLO Based Key Point Notes
(National Book Foundation - As Federal Textbook Board, Islamabad Based on National Curriculum Pakistan 2023-2024 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 2023-2024 and Onward prescribed by Federal Board of Intermediate and Secondary Education, Islamabad, and All Pakistan Boards)
{Contact WhatsApp # 03339719149 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}
************************************
************************************
👉👉👉 Computer Science 12th Class Notes (Main Page)
************************************
Unit 3: Object-Oriented Programming in C++
3.1.5 Comment statement in C++ Program:
The comment statements are non-executable statements which are used to add remarks or comments in a program.
Comments are used:
- To increase the readability of the program.
- You can easily understand the logic of a program.
- It can help in debugging and modifying the program.
In C program, comments can be added in a program in two ways:
- Single line comments: Comments on a single line are added by using the double slash “//”. For example:
- A = L * W; // A formula to calculate the area of a rectangle.
- int = a; // A statement to declare a variable of integer.
2. Multi-line comments: Multi-line comments are inserted by placing /*at the beginning of the comments and */ is placed at the end of the comments. For example:- /* A program to calculate the area of a rectangle */
The comment statements are non-executable statements which are used to add remarks or comments in a program.
- To increase the readability of the program.
- You can easily understand the logic of a program.
- It can help in debugging and modifying the program.
- Single line comments: Comments on a single line are added by using the double slash “//”. For example:
- A = L * W; // A formula to calculate the area of a rectangle.
- int = a; // A statement to declare a variable of integer.
2. Multi-line comments: Multi-line comments are inserted by placing /*
at the beginning of the comments and */ is placed at the end of the comments. For example:
- /* A program to calculate the area of a rectangle */
👇👇👇👇👇👇👇👇👇👇👇👇
************************************👉👉👉 Computer Science 12th Class Notes (Main Page)
************************************
Shortcut Links For:
1. 5th Class All Subjects Notes
2. 8th Class All Subjects Notes
3. Easy English Grammar Notes
1. Website for School and College Level Physics 2. Website for School and College Level Mathematics 3. Website for Single National Curriculum Pakistan - All Subjects Notes
© 2023 & onwards Academic Skills and Knowledge (ASK)
Note: Write me in the comments box below for any query and also Share this information with your class-fellows and friends.
1. Website for School and College Level Physics
2. Website for School and College Level Mathematics
3. Website for Single National Curriculum Pakistan - All Subjects Notes
0 Comments
Note: Write me in the comments box below for any queries and also Share this information with your class-fellows and friends.