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

Explore more Topics under C Programming

Q431.
What will be the address of the arr[2][3] if arr is a 2-D long array of 4 rows and 5 columns and starting address of the array is 2000?
Discuss
Answer: (c).2052
Q432.
The information about an array used in program will be stored in
Discuss
Answer: (c).Dope Vector
Q433.
An array elements are always stored in ________ memory locations.?
Discuss
Answer: (a).Sequential
Q434.
Let x be an array. Which of the following operations are illegal?

I. ++x
II. x+1
III. x++
IV. x*2
Discuss
Answer: (d).I, III and IV
Q435.
What is the output of this program?
void main()
{
      int a[8] = {1,2,3,4,5};
      printf("%d", a[5]);
}
Discuss
Answer: (c).0
Q436.
What is the output of this program?
void main()
{
      int arr[10];
      printf("%d %d", arr[-2], arr[11]);
}
Discuss
Answer: (c).Garbage value Garbage value
Q437.
What will be the output of the program if the array begins at 1000 and each integer occupies 2 bytes?
void main()
{
    int arr[2][2] = { 1, 2, 3, 4 };
    printf("%u, %u", arr+1, &arr;+1);
}
Discuss
Answer: (a).1004 1008
Q438.
What is the output of this program?
#include <stdio.h>
int main()
{
    int arr[5] = {1,2,3,4,5};
    int p, q, r;
    p = ++arr[1];
    q = arr[1]++;
    r = arr[p++];
    printf("%d, %d, %d", p, q, r);
    return 0;
}
Discuss
Answer: (c).4 3 4
Q439.
What is the output of this program?
#include <stdio.h>
int main()
{
    int a[1]={100};
    printf("%d", 0[a]);
    return 0;
}
Discuss
Answer: (a).100
Q440.
What is the output of this program? (Assume that base address of a is 1000 and size of integer is 32 bit)
int main()
{
    int a[10];
    a++;
    printf("%u", a);
    return 0;
}
Discuss
Answer: (d).Lvalue Required

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!