C Arrays Questions and Answers

Take Exam

C Arrays questions with answers are among the most frequently asked topics in C programming questions and answers for technical interviews. Arrays form the backbone of data storage and manipulation in C language. By mastering array declaration, initialization, and traversal, you build a strong base for coding efficiency. Companies like TCS, Wipro, and Cognizant often test candidates with C array MCQs to assess logical implementation and memory handling. This section includes solved examples, explanations, and C array programs to help students achieve accuracy and confidence in placement tests.

C Arrays

Showing 10 of 50 questions

11. Identify the correct declaration.

  • int a [10] [10];
  • int a [10, 10];
  • int a (10) (10);
  • int a (10, 10);
Show Answer Report

12. Maxmimum number of elements in tha array declaration int x [10]; is

  • 9
  • 10
  • 11
  • undefined
Show Answer Report

13. The elements of the following array x are float x[5];

  • x[0], x[1], x[2], x[3], x[4]
  • x[1], x[2], x[3], x[4], x[5]
  • x(0), x(1), x(2), x(3), x(4)
  • x(1), x(2), x(3), x(4), x(5)
Show Answer Report

14. Maximum number of elements in the declaration int y[5][8]; is

  • 28
  • 32
  • 35
  • 40
Show Answer Report

15. Two dimensional array elements are stored

  • column major order
  • row major order
  • both options a and b
  • random order
Show Answer Report

16. Two-dimensional array elements are stored in

  • column major order
  • row major order
  • both options a and b
  • random order
Show Answer Report

17. ANSI C recommends a compiler to support at least _______dimensions of an array.

  • 4
  • 5
  • 6
  • 7
Show Answer Report

18. Array declaration

  • requires the number of elements to be specified
  • does not require the number of elements to be specified
  • assumes default size as 0
  • is not necessary
Show Answer Report

19. Identify the wrong expression given int a[10];

  • a[-1]
  • a[10]
  • a[0]
  • ++a
Show Answer Report

20. What is the value of a [0][2] in int a[3][4] = {{1,2}, {4,8,15}} ?

  • 4
  • 2
  • 0
  • not defined
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test