Question: Select: (2 points) What is the correct code to open file ECE.txt in append mode having the file pointer p? Select one: a. p=fprintf(ECE.txt,a) O




Select: (2 points) What is the correct code to open file ECE.txt" in append mode having the file pointer p? Select one: a. p=fprintf("ECE.txt","a") O b.p=fopen("ECE.txt", "a") c. p=fopen("ECE.txt","w") d. p=fopen("ECE.txt","r") Select: (2 points) To declare a stream pointer spData, the following command is used: Select one: a. FILE sp Data; Ob.file *sp Data; O c. FILE *sp Data; O d. int *spData; Select: (2 points) What is the correct code to open file "ECE.txt" in read mode having the file pointer p? Select one: a. p=fprintf("ECE.txt","r") O b.p=fopen("ECE.txt","a") O c. p=fopen("ECE.txt","w") O d. p=fopen("ECE.txt","r") Select: (2 points) To declare a char pointer p, the following command is used: Select one: O a. file *p; O b. float* p; O c. int* p; O d. char *p
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
