Download CBSE Class 11 Computer Science Structured Data Types Arrays And Structures Notes in PDF format. All Revision notes for Class 11 Computer Science have been designed as per the latest syllabus and updated chapters given in your textbook for Computer Science in Class 11. Our teachers have designed these concept notes for the benefit of Class 11 students. You should use these chapter wise notes for revision on daily basis. These study notes can also be used for learning each chapter and its important and difficult topics or revision just before your exams to help you get better scores in upcoming examinations, You can also use Printable notes for Class 11 Computer Science for faster revision of difficult topics and get higher rank. After reading these notes also refer to MCQ questions for Class 11 Computer Science given on studiestoday
Revision Notes for Class 11 Computer Science Structured Data Types Arrays And Structures
Class 11 Computer Science students should refer to the following concepts and notes for Structured Data Types Arrays And Structures in Class 11. These exam notes for Class 11 Computer Science will be very useful for upcoming class tests and examinations and help you to score good marks
Structured Data Types Arrays And Structures Notes Class 11 Computer Science
Structured Data Types : Arrays and Structures.
Objectives :
• to understand the meaning of structure datatypes and its availability in C++.
• To appreciate the use and importance of Arrays in C++
• to differentiate between the use and implementation of different types of Arrays
• To use structures as User Defined data type to write programs.
• To understand and use typedef
Structured Data types :
Students till now whatever data type we have used are just primitive data types like int , char , float , etc. All these datatypes are defined within the C++ compiler and that is why they are also called as primitive. We can define a length using int , a weight using float , a name using characters etc. but suppose I tell you ―please define a fruit for me in program‖ ,then your mind starts wondering, as you can't define a fruit just with any one datatype as you did with length , weight etc. A Fruit itself is a composite entity having following attributes :
color : can be described with a name i.e. char [ ]
taste : can be described with a name i.e. char[ ]
season : can be described with int i.e. 1 for summer , 2 for winter …
price : can be described as float ans so on...
This means that to describe a fruit we need to have a collection of data-types bundled togeather so that all the attributes of the fruit can be captured. This is true for any real world thing around you say student , mobile , plant etc. So when we bundle many primitive data types together to define a real world thing then it is known as derived data type or structured data type or User defined data types.
In this chapter we would look onto two important structured data types , one is Array and the other one is Structure.
Sometimes we need to have variables in very large quantities , that too of same data type i.e. suppose we want 200 integer variables. In this situation will you declare 200 individual variables ? Absolutely not. This is because it will :
a) wastage of time as well time taking task
b) we won't be able to manage these 200 variables in our program , it will be difficult to remember the names of variable every now and then during programming. So there exist special structured data type in C++ to tackle this situation. C++ allows a programmer to bundle together all these same type of 200 variable under a same tag name called as Arrays.
So we are observing that structuring data type means bundling primitive data type in some or other way so that it solves some special programming situations.
4.1 Arrays
An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.
That means that, for example, we can store 5 values of type int in an array without having to declare 5 different variables, each one with a different identifier. Instead of that, using an array we can store 5 different values of the same type, int for example, with a unique identifier.
For example, an array to contain 5 integer values of type int called myArr could be represented like this:
where each blank panel represents an element of the array, that in this case are integer values of type int. These elements are numbered from 0 to 4 since in arrays the first index is always 0, independently of its ength.
Like a regular variable, an array must be declared before it is used. A typical declaration for an array in C++ is:
Syntax : <datatype> array_name [elements];
where datatype is a valid type (like int, float...), name is a valid identifier and the elements field (which is always enclosed in square brackets [ ]), specifies how many of these elements the array has to contain.
Therefore, in order to declare an array called myArr as the one shown in the above diagram it is as simple as:
int myArr [5];
NOTE: The elements field within brackets [ ] which represents the number of elements the array is going to hold, must be a constant value, since arrays are blocks of non-dynamic memory whose size must be determined before execution. In order to create arrays with a variable length dynamic memory is needed, which is explained later in these tutorials.
Initializing arrays.
When declaring a regular array of local scope (within a function, for example), if we do not specify otherwise, its elements will not be initialized to any value by default, so their content will be undetermined until we store some value in them. The elements of global and static arrays, on the other hand, are automatically initialized with their default values, which for all fundamental types this means they are filled with zeros.
In both cases, local and global, when we declare an array, we have the possibility to assign initial values to each one of its elements by enclosing the values in braces { }. For example:
int myArr [5] = { 16, 2, 77, 40, 12071 };
This declaration would have created an array like this:
myArr[0] = a;
myArr[a] = 75;
b = myArr [a+2];
myArr[myArr[a]] = myArr[2] + 5;
#include <iostream>
using namespace std;
int myArr [] = {16, 2, 77, 40, 12071};
int n, result=0;
int main ()
{
for ( n=0 ; n<5 ; n++ )
{
result += myArr[n];
}
cout << result;
return 0;
}
Arrays can also be initialized during runtime. The following program shows how to input values into arrays during rum time :
#include<iostream.h>
main()
{
int my_arr[5]; // name of array.
cout<<‖\nEnter values at: ―;
for(int i = 0 ; i < 5; i++)
{
cout<<‖\n‖<<i+1<<‖ :‖;
cin>>my_arr[ i ]; //stores value at ith index.
}
#include<iostream.h>
main()
{
int my_arr[5]; // name of array
for(int i = 0 ; i < 10; i++)
{
cout<<‖\n‖<<i+1<<‖ :‖;
cin>>my_arr[ i ]; //stores value at ith index.
}
for(int i = 0 ; i < 10; i++)
{
cout<<‖\Number at ‖<<i+1<<‖ :‖<<my_arr[ i ]; //show value at ith index.
}
}
Please click the link below to download pdf file for CBSE Class XI Computer Science Structured Data Types-Arrays and Structures Concepts.
CBSE Class 11 Computer Science Structured Data Types Arrays And Structures Notes
We hope you liked the above notes for topic Structured Data Types Arrays And Structures which has been designed as per the latest syllabus for Class 11 Computer Science released by CBSE. Students of Class 11 should download and practice the above notes for Class 11 Computer Science regularly. All revision notes have been designed for Computer Science by referring to the most important topics which the students should learn to get better marks in examinations. Studiestoday is the best website for Class 11 students to download all latest study material.
Notes for Computer Science CBSE Class 11 Structured Data Types Arrays And Structures
Our team of expert teachers have referred to the NCERT book for Class 11 Computer Science to design the Computer Science Class 11 notes. If you read the concepts and revision notes for one chapter daily, students will get higher marks in Class 11 exams this year. Daily revision of Computer Science course notes and related study material will help you to have a better understanding of all concepts and also clear all your doubts. You can download all Revision notes for Class 11 Computer Science also from www.studiestoday.com absolutely free of cost in Pdf format. After reading the notes which have been developed as per the latest books also refer to the NCERT solutions for Class 11 Computer Science provided by our teachers
Structured Data Types Arrays And Structures Notes for Computer Science CBSE Class 11
All revision class notes given above for Class 11 Computer Science have been developed as per the latest curriculum and books issued for the current academic year. The students of Class 11 can rest assured that the best teachers have designed the notes of Computer Science so that you are able to revise the entire syllabus if you download and read them carefully. We have also provided a lot of MCQ questions for Class 11 Computer Science in the notes so that you can learn the concepts and also solve questions relating to the topics. All study material for Class 11 Computer Science students have been given on studiestoday.
Structured Data Types Arrays And Structures CBSE Class 11 Computer Science Notes
Regular notes reading helps to build a more comprehensive understanding of Structured Data Types Arrays And Structures concepts. notes play a crucial role in understanding Structured Data Types Arrays And Structures in CBSE Class 11. Students can download all the notes, worksheets, assignments, and practice papers of the same chapter in Class 11 Computer Science in Pdf format. You can print them or read them online on your computer or mobile.
Notes for CBSE Computer Science Class 11 Structured Data Types Arrays And Structures
CBSE Class 11 Computer Science latest books have been used for writing the above notes. If you have exams then you should revise all concepts relating to Structured Data Types Arrays And Structures by taking out a print and keeping them with you. We have also provided a lot of Worksheets for Class 11 Computer Science which you can use to further make yourself stronger in Computer Science
You can download notes for Class 11 Computer Science Structured Data Types Arrays And Structures for latest academic session from StudiesToday.com
Yes, you can click on the link above and download notes PDFs for Class 11 Computer Science Structured Data Types Arrays And Structures which you can use for daily revision
Yes, the notes issued for Class 11 Computer Science Structured Data Types Arrays And Structures have been made available here for latest CBSE session
You can easily access the link above and download the Class 11 Notes for Computer Science Structured Data Types Arrays And Structures for each topic in Pdf
There is no charge for the notes for CBSE Class 11 Computer Science Structured Data Types Arrays And Structures, you can download everything free of charge
www.studiestoday.com is the best website from which you can download latest notes for Structured Data Types Arrays And Structures Computer Science Class 11
Come to StudiesToday.com to get best quality topic wise notes for Class 11 Computer Science Structured Data Types Arrays And Structures
We have provided all notes for each topic of Class 11 Computer Science Structured Data Types Arrays And Structures as per latest CBSE syllabus