Answer:
<u>/var</u>
Explanation:
The /var subdirectory contains files to which the system writes data during the course of its operation. Hence, since it serves as a system directory, it would prevent log files from consuming a large amount of data.
Answer:
The best way is 2 and the worst is 1
Explanation:
Answer:
ofstream asia("asiasales2009.txt"); //It is used to open asiasales2009.txt files with the asia objects.
ofstream europe("europesales2009.txt"); //It is used to open europesales2009.txt files with the europe objects.
ofstream africa("africasales2009.txt");
//It is used to open africasales2009.txt files with the africa objects.
ofstream latin("latinamericasales2009.txt");//It is used to open latinamericasales2009.txt files with the latin objects.
Explanation:
- The above code is written in the c++ language which is used to open the specified files with the specified objects by the help of ofstream class as described in the question-statements.
- The ofstream is used to open the file in the c++ programing language, so when a user wants to use the ofstream to open the file in written mode, then he needs to follow the below syntax--
ofstream object("file_name_with_extension");
Answer:
The program to this question can be given as:
Program:
#include<stdio.h>//include header file
int main() //defining main method
{
printf("Hello..! and please vote the answer."); //print value.
return 0;
}
Output:
Hello..! and please vote the answer.
Explanation:
In the given question some information is missing that is the message to be printed, In this code assume some message to be displayed, and the description to the above code as follows:
- In the above code firstly header file is included for using a basic function like print method, input method, etc.
- In the next line main method is defined, inside the main method a print function is used in this function a message is passed with a double-quote ("'). When the code will execute it will print the message that is given in the output section.