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 52 of 53

Explore more Topics under C Programming

Discuss
Answer: (a).ary[10] is a single dimensional array. cry[10][10] is a Multidimensional array.
Discuss
Answer: (c).Multi Dimensional Array
Q513.
What is the output of C program withmultidimensional array?
int main()
{
    int ary[3][2] = {1,2,3,4,5,6};
    printf("%d %d", ary[0][0], ary[2][1]);
    return 0;
}
Discuss
Answer: (b).1 6
Q514.
What is the output of C program with multidimensional arrays?
int main()
{
    int ary[3][] = {6,5,4,3,2,1};
    printf("%d %d", ary[0][0], ary[2][1]);
    return 0;
}
Discuss
Answer: (d).Compiler error
Q515.
What is the output of C program with multidimensional arrays?
int main()
{
    int ary[][3] = {6,5,4,3,2,1};
    printf("%d %d", ary[0][0], ary[1][0]);
    return 0;
}
Discuss
Answer: (b).6 3
Q516.
Choose an alternative definition of C Multidimensional array?
int ary[][3] = {6,5,4,3,2,1};
Discuss
Answer: (d).All of the above
Q517.
What is the output of C Program with arrays?
int main()
{
    int ary[][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    printf("%d %d", ary[0][0][0], ary[1][1][1]);
    return 0;
}
Discuss
Answer: (b).1 11
Discuss
Answer: (a).First Dimension size is optional when initializing the array at the same time.
Q519.
What is the output of C Program?
int main()
{
    int ary[2][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    int *p;
    p = &ary;
    printf("%d %d",*p, *p+11);
    return 0;
}
Discuss
Answer: (b).1 12
Q520.
What is the output of C Program?
int main()
{
    int ary[2][2][3] = {
        {{1,2,3},{4,5,6}},
        {{7,8,9},{10,11,12}}
    };
    printf("%d",*(*(*(ary+1)+ 1)+2));
    return 0;
}
Discuss
Answer: (c).12

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!