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

Consider: union Data { int i; float f; char c; }; What is the size of this union?

Q.22Easy

How do you access a member of a structure through a pointer in C?

Q.23Easy

Which of the following correctly demonstrates a typedef for a structure?

Q.24Easy

Which of the following is the correct way to initialize a structure in C?

Q.25Easy

Which of the following statements about structures is TRUE?

Q.26Easy

Consider the following code:
struct Data {
int a;
char b;
};
struct Data d = {10, 'A'};
Which method of initialization is used here?

Q.27Easy

What is the primary difference between a struct and a union in C?

Q.28Easy

Which of the following correctly demonstrates accessing a member of a pointer to a structure?

Q.29Easy

In C, what does the 'typedef' keyword do when used with structures?

Q.30Easy

Given: struct Node { int data; struct Node *next; }; This represents which data structure concept?

Q.31Easy

In the context of structures, what does 'self-referential' mean?

Q.32Easy

What is the key difference between a structure and a union in C?

Q.33Easy

struct Node { int data; struct Node *next; }; This is an example of which design pattern?

Q.34Easy

Given a structure with array members, how would you efficiently pass it to a function to avoid copying overhead?