Ask 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 input. dat and assign it to the reference variable myfile.

+1
Answers (1)
  1. 19 February, 05:06
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers