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

Explore more Topics under C Programming

Q271.
"&" is called as ___________ in pointer concept.
Discuss
Answer: (c).Address Operator
Discuss
Answer: (b).Value at Operator
Q273.
What is the output of the program ?
#include<stdio.h>
int main()
{
    int a[5] = {2, 3};
    printf("%d, %d, %d\n", a[2], a[3], a[4]);
    return 0;
}
Discuss
Answer: (d).0, 0, 0
Discuss
Answer: (a).Representation of NULL pointer
Q275.
Can you combine the following two statements into one?
char *p;
p = (char*) malloc(100);
Discuss
Answer: (c).char *p = (char*)malloc(100);
Q276.
In which header file is the NULL macro defined?
Discuss
Answer: (c).stdio.h and stddef.h
Q277.
How many bytes are occupied by near, far and huge pointers (DOS)?
Discuss
Answer: (a).near=2 far=4 huge=4
Q278.
If a variable is a pointer to a structure, then which of the following operator is used to access data members of the structure through the pointer variable?

a.

.

b.

&

c.

*

d.

->

Discuss
Answer: (d).->
Q279.
What would be the equivalent pointer expression for referring the array element a[i][j][k][l]
Discuss
Answer: (b).*(*(*(*(a+i)+j)+k)+l)
Discuss
Answer: (c).A variable that stores address of other variable

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!