subject

#include using namespace std;
const int SIZE 4;
void printArray(int list[], int arraySize);
void reverse(const int list[], int newList[], int size)
{
for (int i = 0, j = size - 1; i < size; i++, j--)
{
newList[j] = list[i];
}
}
void p(const int list[], int arraySize)
{
list[0] = 100;
}
int main()
{
SIZE = 4;
int newList[SIZE];
int numbers[] = {1, 4, 3, 6, 8};
p(numbers, 5);
printArray(numbers, 5);
reverse(list, newList, SIZE);
printArray(newList, SIZE);
return 0;
}
void printArray(int list[], int arraySize)
{
for (int i = 0; i < arraySize; i++)
{
cout << list[i] << " ";
}
}

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 22.06.2019 21:50
Answer the following questions regarding your system by using the commands listed in this chapter. for each question, write the command you used to obtain the answer. a. what are the total number of inodes in the root filesystem? how many are currently utilized? how many are available for use? b. what filesystems are currently mounted on your system? c. what filesystems are available to be mounted on your system? d. what filesystems will be automatically mounted at boot time?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
Research data that is presented using descriptive language is said to be
Answers: 2
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. andy received a potentially infected email that was advertising products. andy is at risk of which type of security threat? a. spoofing b. sniffing c. spamming d. phishing e. typo-squatting
Answers: 2
You know the right answer?
#include using namespace std;
const int SIZE 4;
void printArray(int list[], int array...
Questions
question
English, 07.04.2020 19:59