Computer Science SLO Based Key Point Notes

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

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

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

Unit 5: Arrays and String


5.1.1 Comcept of an Array:

  • An array is composed/group of variables (or elements) of the same data type stored in a consecutive memory location which can be referenced through the same variable name (or array name)
  • Each data element or variable of the array has an associated index number (or subscript number).
  • To refer to an individual data element/item of the array, we use subscripts, the number in the brackets following the array name.
  • The number specifies the element’s position in an array. In C, the numbering is started from 0. For example marks[4] = 83;  stores the value 83 in the fifth location of the array.


Example: An array of integer data types that group together 6 variables which store the marks of 6 six different students.



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

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


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

Note:  Write me in the comments box below for any query and also Share this information with your class-fellows and friends. Boards)