C Programming MCQ Questions and Answers
C Programming MCQ questions with answers are a favorite in programming interview questions with answers for software placement exams like TCS, Infosys, and Wipro. The C language forms the base for all modern programming, focusing on data types, control structures, loops, arrays, and pointers. This section provides a curated set of multiple-choice questions designed to test your coding logic and understanding of C fundamentals. Practice these questions regularly to build confidence and accuracy in technical interviews and coding assessments.
C Programming MCQ
Showing 10 of
25 questions
22. The function ftell(fptr)returns
- the beginning position of the file represented by fptr
- the end position of the file represented by fptr
- the current position of the file represented by fptr
- the middle jposition of the file epresented by fptr
23. The value returned by successful action of ftell(fptr) is
- -1
- 0
- long int value representing the current file position
- MAX_INT
24. The value returned by ftell() if an error occurs is
- -1
- 0
- Positive value
- MIN_INT
25. The function call f seek (fp, 0, 0); is same as
- fp = fopen()
- rewind (fp)
- fclose(fp);
- ftell(fp);