Computer Science SLO Based Key Point Notes

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

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

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

Unit 5: Arrays and String


5.1.2. Declaring (defining) an Array

An array, in C++, has the following syntax:

            data_type array_name[Array size];

Note
  • The data_type is the variable data type whether it is float, int, long int, char, etc.
  • The variable_name is whatever you want to call it. The size is the number of elements in the array.

Example:

                int marks[10];
                float exp_result[100]; etc.



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