iGET

C Programming - MCQ Practice Questions

Practice free C Programming multiple-choice questions with detailed answers and explanations. Perfect for competitive exam preparation.

978 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?