Question: In C, to read in data from an external file at file path C: Desktopmy_data.txt to file pointer myfile (assume this has been declared), which

 In C, to read in data from an external file at

In C, to read in data from an external file at file path C: \Desktop\my_data.txt to file pointer myfile (assume this has been declared), which statement should be used? myfile = open ("C: \\Desktop\my_data.txt", "r"): myfile = fopen("my_data.txt", "r"): myfile = fopent("C: \\Desktop\\my_data.txt", "r"): myfile = fopen("C: \\Desktop\my_data.text", "r"): Assuming an input data file already exists and contains the values given below, what type of looping structure would be best suited to read the data? 5 0.0, 132.5 0.1, 147.2 0.2, 148.3 0.3, 157.3 0.4, 163.2 for do/while while end of file Assuming an input data file already exists and contains the values given below, what type of looping structure would be best suited to read the data? 0.0, 132.5 0.1, 147.2 0.2, 148.3 0.3, 157.3 0.4, 163.2 999.0, -999.0 while for do/while end of file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!