Question:Suppose there is a file a.dat which has to be opened in the read mode using the FILE pointer ptr1, what will be the correct syntax?
A ptr1 = open("a.dat");
B ptr1 = fileopen("a.dat");
C ptr1 = fopen("a.dat","r");
D ptr1 = open("a.dat","r");
E ptr1 = fileopen("a.dat","r");
+ AnswerC
+ Report