New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
what is tjis code problem!
#include <iostream>
using namespace std;
int main()
{
int b = 5;
int arr[b] = {11, 35, 62, 555, 989};
int sum = 0;
for (int x = 0; x < 5; x++) {
sum += arr[x];
}
cout << sum << endl;
return 0;
}
I cannot make an array using int variable in order to define array's element number!?
1 Vote
7 AnswersJagged array
2 Votes
6 AnswersWhat is the array means?
0 Votes
4 Answersarray examples
1 Vote
5 AnswersHot today
What did I do wrong ??
0 Votes
I'm confused about C#.
2 Votes
Beginner
1 Votes
How can I make a flag
1 Votes
I choose
0 Votes
Want to know something
0 Votes
Html
1 Votes
Comment poser une question
1 Votes