iGET

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

Q.21Easy

How many bytes are allocated by malloc(sizeof(int) * 10) on a system where int is 4 bytes?

Q.22Easy

What is the primary difference between calloc() and malloc() in C?

Q.23Easy

In a dynamic queue implementation, if front pointer is NULL, what does it indicate?

Q.24Easy

If malloc() returns NULL, what should a program do?

Q.25Easy

In implementing a dynamic doubly-linked list, what additional field is required compared to singly-linked list?