Q&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 AnswersWhat is my mistake?
0 Votes
1 AnswerMethod in python
0 Votes
2 AnswersPendulum broken
2 Votes
3 AnswersHot today
C pointers
2 Votes
Python
0 Votes
Guys help please
0 Votes
Python question
1 Votes
Control flow
0 Votes
HTML
0 Votes
Front-end vs Full-stack
1 Votes
About our Capstone product "Ecocambio" We don't know how to code and how electronics would connect.
0 Votes
Augmented assignment (+=)
0 Votes