Answer:
The answer is "Option c"
Explanation:
The assignment is the statement used to determine the value of the programming variable. It is also regarded as the same sign indicating the function (=) in the operator. This operand works by allocating the operand's value to the right-hand side, and other choices are not correct that can be described as follows:
- In option a, It is a keyword that is used to update table details.
- In option b, It is part of programming, which is used to the declared variable.
- In option d, It is used to assign value in variable.
Answer:
#include <iostream>
#include <vector>
using namespace std;
void swapFrontBack(vector<int>& nums) {
if(nums.size() < 2) {
return;
}
swap(nums[0], nums[nums.size()-1]);
}
void printit(vector<int>& arr) {
for(int i = 0; i < arr.size(); i++) {
cout << arr[i] << " ";
}
cout << endl;
}
int main() {
vector<int> num1;
swapFrontBack(num1);
printit(num1);
num1.push_back(1);
swapFrontBack(num1);
printit(num1);
num1.push_back(2);
swapFrontBack(num1);
printit(num1);
vector<int> num2(10, 1);
num2[9] = 2;
swapFrontBack(num2);
printit(num2);
return 0;
}
Explanation:
Manage the computer's resources, such as the central processing unit, memory, disk drives, and printers, (2) establish a user interface, and (3) execute and provide services for applications software.