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

Q241.
Determine Output:
void main()
{
      int i=5, j=6, z;
      printf("%d", i+++j);
}
Discuss
Answer: (c).11
Q242.
Determine Output:
void main()
{
      int i = abc(10);
      printf("%d", --i);
}
int abc(int i)
{
      return(i++);
}
Discuss
Answer: (b).9
Q243.
Determine Output:
void main()
{
      char a[]="12345"; 
      int i = strlen(a); 
      printf("%d", ++i);
}
Discuss
Answer: (b).6
Q244.
Determine Output:
void main()
{
      static char *s[] = {"black", "white", "yellow", "violet"};
      char **ptr[] = {s+3, s+2, s+1, s}, ***p;
      p = ptr;
      ++p; 
      printf("%s",*--*++p + 3); 
}
Discuss
Answer: (d).ck
Q245.
Set of consecutive memory locations is called as ________.
Discuss
Answer: (c).Array
Q246.
Array can be considered as set of elements stored in consecutive memory locations but having __________.
Discuss
Answer: (b).Same Data Type
Q247.
In Array, There is one to one correspondence between set of ________ and set of values.
Discuss
Answer: (c).Indices
Q248.
Smallest element of an array is called as _______.
Discuss
Answer: (a).Lower Bound
Q249.
If we have declared an array described below -
int arr[6];
then which of the following array element is considered as last array element ?
Discuss
Answer: (b).arr[5]
Q250.
Array which is having ____ dimensions is called as 2-D array.

a.

2

b.

4

c.

3

d.

5

Discuss
Answer: (a).2

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!