An array saves memory because here the memory is padded, so there is no space between them and if it is no contagious space then it wastes space.
<h3>What is an array?</h3>
An array in terms of computer science is a linear data structure, which stores the same type of data in a compact or contagious way and in adjacent memory locations.
As it compacts the data, so it saves space, but when it is not contagious it wastes space at the same time.
Thus, because the memory is padded in an array, there is no gap between them, which would waste space even if it were contagious.
Learn more about array, here:
brainly.com/question/13107940
#SPJ1
Answer:
C. Input, Process, and Output.
hope this helps you. ;)
Answer:
The US participation rate (labor) was at 63.3% in Oct. 2019, and this is the detail from the federal bureau of the Labor Statistics, that publishes this detail each month, And the monthly statistics have always circulated 63%, and this is since 2013, and that since the sharp decline that was noticed during the Great Recession. And we cannot increase from here on as this is maximum. However, if this can happen then it will have a good effect on the GDP in the long run, but this cannot be the case. And this is possible if the population is increased through immigration. And immigration can have a better result as it will increase the labor force, which is being used in maximum current and cannot be increased further currently.
Explanation:
Please check the answer section.
Answer:
#include <iostream>
#include <cstring>
#include <fstream>
using namespace std;
bool convertToUpper(const string &st);
int main()
{
string s;
cout << "Enter the string: " << endl;
getline(cin, s);
convertToUpper(s);
return 0;
}
bool convertToUpper(const string &st) {
if(st.length() == 0) {
return false;
} else {
ofstream myfile;
myfile.open ("Upper.txt");
for(int i=0;i<st.length();i++) {
if(st[i]>='a' && st[i]<='z') {
myfile << (char)toupper(st[i]);
} else {
myfile <<st[i];
}
}
myfile.close();
}
}