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

Explore more Topics under C Programming

Q421.
Consider the declarations:

char first (int (*) (char, float)) ;
int second(char, float);

Which of the following function invocation is valid?
Discuss
Answer: (c).first (second);
Q422.
A function q that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as
Discuss
Answer: (a).int (*q (char*) )[ ]
Q423.
If func is a function needing three arguments a1, a2,  a3 then func can be invoked by
Discuss
Answer: (d).both (a) & (b)
Discuss
Answer: (b).p is a pointer to a 5 element integer array
Q425.
Consider the declaration

int a = 5, *b = &a;

The statement
printf("%d", a * b);
prints
Discuss
Answer: (d).an error message
Q426.
Consider the following segment. Cchoose the statements having errors
char *a, *b, c[10], d[10];
 a = b;
 b = c;
 c = d;
 d = a;
Discuss
Answer: (c).c = d; and d = a;
Discuss
Answer: (c).ptr = malloc (m*n); memset (p, 0, m*n);
Q428.
If p is a pointer to an integer and t is a pointer to a character then sizeof (p) will be
Discuss
Answer: (a).same as that of sizeof ( t )
Q429.
Which of the following comments about arrays and pointers is/are not true?
Discuss
Answer: (d).All of these
Q430.
A one dimensional array A has indices 1....75. Each element is a string and takes up three memory words. The array is stored at location 1120 decimal. The starting address of A[49] is
Discuss
Answer: (a).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!