Computer Science SLO Based Key Point Notes
👉👉👉 Computer Science 12th Class Notes (Main Page)
👉👉👉 Computer Science 12th Class Notes (Main Page)
************************************
Unit 5: Arrays and String
5.3.1 Introduction to Strings
- A sequence of characters is called a string.
- In C++, strings are stored in a one-dimensional array of char data types. It is used to store words, names, addresses, etc.
- The last character of a string is the character “\0” which is called a null character. It is an escape sequence that tells the compiler where the string is end.
- It is automatically appended at the end of the string.
- As the “\0” character shows the end of a string, this means that the size of a string will be one less than the size of the array.
👇👇👇👇👇👇👇👇👇👇
************************************👉👉👉 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)
0 Comments
Note: Write me in the comments box below for any queries and also Share this information with your class-fellows and friends.