Menu
Coddy logo textTech

Introduction

Lesson 1 of 26 in Coddy's Arrays in C++ course.

An Array is a type of Data Structure. Data structures are used to store the data and to further work on them.  Arrays are used to store a group of similar data types in a single place.

The array is a type of data structure that is used to store data of a similar type.

In this course, it is preassumed that you have a basic level of C++ syntax, just to get revised, here are examples to how to declare an array.

 

 

int Arr[3]={1,2,3};
int n;
int Arr[n];     //Further take input
int Arr[]={1,2,3,4,5}    //Automatically reads the size

 

To know more about arrays

Introduction to  Arrays 

 

 

 

challenge icon

Challenge

Declare an Array named Alpha of the first 5 English capital letter alphabets.

Try it yourself

#include<iostream>
using namespace std;

int main(){

  //Write your code here 

    return 0;
}   

All lessons in Arrays in C++