adplus-dvertising

Welcome to the Pointers and Arrays in C MCQs Page

Dive deep into the fascinating world of Pointers and Arrays in C with our comprehensive set of Multiple-Choice Questions (MCQs). This page is dedicated to exploring the fundamental concepts and intricacies of Pointers and Arrays in C, a crucial aspect of C Programming. In this section, you will encounter a diverse range of MCQs that cover various aspects of Pointers and Arrays in C, from the basic principles to advanced topics. Each question is thoughtfully crafted to challenge your knowledge and deepen your understanding of this critical subcategory within C Programming.

frame-decoration

Check out the MCQs below to embark on an enriching journey through Pointers and Arrays in C. Test your knowledge, expand your horizons, and solidify your grasp on this vital area of C Programming.

Note: Each MCQ comes with multiple answer choices. Select the most appropriate option and test your understanding of Pointers and Arrays in C. You can click on an option to test your knowledge before viewing the solution for a MCQ. Happy learning!

Pointers and Arrays in C MCQs | Page 37 of 53

Q361.
Which of the following statements mentioning the name of the array begins DOES NOT yield the base address?

1: When array name is used with the sizeof operator.
2: When array name is operand of the & operator.
3: When array name is passed to scanf() function.
4: When array name is passed to printf() function.
Discuss
Answer: (b).A, B
Q362.
Which of the following statements are correct about the program below?
#include<stdio.h>

int main()
{
    int size, i;
    scanf("%d", &size);
    int arr[size];
    for(i=1; i<=size; i++)
    {
        scanf("%d", arr[i]);
        printf("%d", arr[i]);
    }
    return 0;
}
Discuss
Answer: (c).The code is erroneous since the statement declaring array is invalid.
Discuss
Answer: (b).In the first statement 6 specifies a array size, whereas in the second statement it specifies a particular element of array.
Q364.
Which of the following statements are correct about an array?

1:The array int num[26]; can store 26 elements.
2:The expression num[1] designates the very first element in the array.
3:It is necessary to initialize the array at the time of declaration.
4:The declaration num[SIZE] is allowed if SIZE is a macro.
Discuss
Answer: (b).1,4
Q365.
O(N)(linear time) is better than O(1) constant time.
Discuss
Answer: (b).False
Discuss
Answer: (d).All of these
Q367.
What is the maximun number of dimensions an array in C may have?
Discuss
Answer: (d).Theoratically no limit. The only practical limits are memory size and compilers
Q368.
If x is an array of interger, then the value of &x[i] is same as
Discuss
Answer: (a).&x[i-1] + sizeof (int)
Q369.
If S is an array of 80 characters, then the value assigned to S through the statement scanf("%s",S) with input 12345 would be
Discuss
Answer: (a)."12345"
Q370.
A one dimensional array A has indices 1....75.Each element is a string and takes up three memory words. The array is stored starting at location 1120 decimal. The starting address of A[49] is
Discuss
Answer: (c).1264

Suggested Topics

Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.

Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!