C Programming - MCQ Practice Questions
C questions in placement tests and university exams are rarely about syntax alone. Most of what you will find here is output prediction, pointer arithmetic, arrays and strings, structures and unions, storage classes, recursion, and file handling. The explanations walk through memory behaviour step by step, which is usually where the confusion sits rather than in the code itself.
972 questions | 100% Free
In C file handling, what does rewind(fp) do?
Which file opening mode allows both reading and writing without truncating existing content?
What does fseek(fp, 0, SEEK_END) accomplish?
Which function returns the current position of file pointer?
Which mode opens file in text format with write permission only?
Which function is used to check if the end-of-file (EOF) has been reached in C file handling?
In a file processing application, what is the primary difference between 'wb' and 'w' file modes?