Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Basic Concept of the Array | Intro to Arrays
Introduction to C++ | Mobile-Friendly

bookBasic Concept of the Array

12
string students[5] = {"Anna", "John", "Emma", "Ross", "Barney"}; cout << students[3];
copy
123
string students[4] = {"Anna", "John", "Emma", "Ross"}; students[3] = "Julia"; cout << students[3];
copy
question-icon
#include
using namespace std;

int main() {
    
= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    numbers
= 5;
    cout << numbers
;

    return 0;
}

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 1

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Awesome!

Completion rate improved to 3.7

bookBasic Concept of the Array

Swipe to show menu

12
string students[5] = {"Anna", "John", "Emma", "Ross", "Barney"}; cout << students[3];
copy
123
string students[4] = {"Anna", "John", "Emma", "Ross"}; students[3] = "Julia"; cout << students[3];
copy
question-icon
#include
using namespace std;

int main() {
    
= {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
    numbers
= 5;
    cout << numbers
;

    return 0;
}

Click or drag`n`drop items and fill in the blanks

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 5. ChapterΒ 1
some-alt