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
What is the output of printf("%d", sizeof(arr)) for char arr[100]?
Which function is safe to use for string concatenation with size limiting?
In C, what happens when you pass an array to a function?
What does the expression *(arr + 3) represent for an integer array?
Which of the following operations is NOT allowed on array names in C?
In a string with escape sequences like "Hello\nWorld", how many characters are counted by strlen()?
What is the output of: char str[20]; scanf("%s", str); when input is 'Hello World'?
What is the correct syntax to pass a 2D array to a function?
For char arr[5] = {'a', 'b', 'c', 'd', 'e'}, is this a valid string?