subject

Each of the following definitions and program segments has errors. Locate as many as you can. 1. int table[10];
for (int x = 0; x < 20; x++)
{
cout << "Enter the next value: ";
cin >> tab1e[x];
2. int numbers [8] = { 1, 2, , 4, , 6};
3. float ratings [];
4. char greeting [ ] = {'H' , 'e' , 'l' , 'l' , 'o' };
cout << greeting
5, int array1 [4] , array2 [4] = { 3, 6, 9, 12} ;
array1 = array2;
6 void showvalues (int nums)
{
for { int count = 0; count < 8; count ++)
cout << nums [ count] ;
}
7, void showvalues ( int nums [4] [ ] )
{
for (rows = 0; rows <4 ; rows ++)
for (cols = 0 ; cols < 5 ; cols++)
cout << nums [ rows ] [ cols] ;
}
8, vector numbers = {1, 2, 3, 4 } ;

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Rafael needs to add a title row to a table that he has inserted in word. what should he do? use the alignment options. use the merge and center option for all the cells in the top row. use the merge and center option on the first two cells in the top row. none of the above
Answers: 3
question
Computers and Technology, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
Peter is thinking of a number which isless than 50. the number has 9 factors.when he adds 4 to the number, itbecomes a multiple of 5. what is thenumber he is thinking of ?
Answers: 1
You know the right answer?
Each of the following definitions and program segments has errors. Locate as many as you can. 1. in...
Questions
question
Mathematics, 14.12.2020 14:50
question
Mathematics, 14.12.2020 14:50
question
Advanced Placement (AP), 14.12.2020 14:50
question
Mathematics, 14.12.2020 14:50
Questions on the website: 13722367