Question 1: File Pointer
Which type is used for file pointers in C?
Question 2: fopen() Function
Which is the correct syntax to open a file in C for reading?
Question 3: fopen() Error Handling
What will this program print if data.txt does not exist?
Question 4: fprintf() Function
What will this program do?
Question 5: File Modes
What does mode "a" do in fopen()?
Question 6: fgetc() Function
What will be the output if input.txt contains AB?
Question 7: fputc() Function
What will this program do?
Question 8: EOF Constant
What does EOF stand for in C file handling?
Question 9: fread() Function
What does this code do?
Question 10: fclose() Function
Why should fclose() always be used after file operations?