Ask Question
12 August, 07:32

Suppose a reference variable of type file called myfile has already been declared. create an object of type file with the initial file name input. dat and assign it to the reference variable myfile.

+1
Answers (1)
  1. 12 August, 10:35
    0
    If the variable myfile has been declared, then the way to create an object with a file name of input. dat is to declare the variable input. dat as well. Next, the variable can then be assigned to the data that is manually inputted. Finally, the reference variable myfile can be equated to the input. dat variable.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Suppose a reference variable of type file called myfile has already been declared. create an object of type file with the initial file name ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers