Answer:
compromise should be demonstrated
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:
Answer:
Option D is the correct answer for the above question
Explanation:
Missing code: The function code is missing in the question, which defined the two return value.
Detailed Expalanation:
- The above question code is in python language, which returns the two values. So there are needs of two variable which is needed to hold the returned value from a function.
- Options b and c both states the two variable for the calling function which needs to hold the returned value and the option D states both option, hence it is a correct option while the other is not because:-
- Option a states no variable which can hold the returned value.
Answer:
"@page" is the correct answer for the above question.
Explanation:
- "@page" is a syntax of CSS which will affect that page which is converted from the hard copy from the soft copy. It means it affects the page which will render the output.
- So If the Thelma wants to set the margins on the output page then he can do this by the help of the "@page" tag which is defined in the CSS, and then the margin is set to this tag by the help of margin statement.
Answer:
Write questions properly
Explanation:
Then it is easy to say answer