Question: Given the following snippet of C++ code: string name = Hello; ifstream myFile; myFile.open(myFile); myFile >> name; myFile.close(); What does it do? It saves the

Given the following snippet of C++ code: string name = "Hello"; ifstream myFile; myFile.open(myFile); myFile >> name; myFile.close(); What does it do? It saves the word Hello into a file in the file system. It reads a word from the keyboard (standard input). It loads the word Hello from a file in the file system. It prints the word Hello to screen (standard output)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
