cool but kinda creepy ngl
Answer:
C)An error message is issued.
Explanation:
If we try to open a file for reading when that file does not exist, we will get an error message.
For example, in Java we will encounter a FileNotFoundException as in the code below:
try {
FileInputStream fis = new FileInputStream("myFile.txt");
DataInputStream dis = new DataInputStream(fis);
BufferedReader br = new BufferedReader(new InputStreamReader(dis));
String str = null;
while ((str = br.readLine()) != null) {
System.err.println(str);
}
} catch (FileNotFoundException e) {
e.printStackTrace();
}
If the file myFile.txt does not exist we can expect to see an exception stack trace corresponding to FileNotFoundException.
Answer:
When we declare a function as a friend of a template class, it means it can access the public, as well as the private and protected members both data variables, and functions of that class. Thus, the friend has access not only to certain data types, but they have access to all the data types of that class. Thus, the function declared as the friend is never deprived of accessing any particular data type of a template class, or any class.
Explanation:
However, you should understand what is template class as well. A template class is the one that is a template and can be transformed into various object code for various data types, that supports all the operators used inside that class or function. We do have the template function. And these behave generically.
Lets see, database contains a large portion of information in one area. While you can edit and send information. These are generally used to organize the data inside.