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.41Medium

What is the output of printf("%d", sizeof(arr)) for char arr[100]?

Q.42Medium

Which function is safe to use for string concatenation with size limiting?

Q.43Medium

In C, what happens when you pass an array to a function?

Q.44Medium

What does the expression *(arr + 3) represent for an integer array?

Q.45Medium

Which of the following operations is NOT allowed on array names in C?

Q.46Medium

In a string with escape sequences like "Hello\nWorld", how many characters are counted by strlen()?

Q.47Medium

What is the output of: char str[20]; scanf("%s", str); when input is 'Hello World'?

Q.48Medium

What is the correct syntax to pass a 2D array to a function?

Q.49Medium

For char arr[5] = {'a', 'b', 'c', 'd', 'e'}, is this a valid string?