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

1. What does the following declaration mean? int (*ptr)[10];

  • ptr is array of pointers to 10 integers
  • ptr is a pointer to an array of 10 integers
  • ptr is an array of 10 integers
  • ptr is an pointer to array
Show Answer Report

2. In C, if you pass an array as an argument to a function, what actually gets passed?

  • Value of elements in array
  • First element of the array
  • Base address of the array
  • Address of the last element of array
Show Answer Report

3. Array is used to represent

  • a list of data items of integer data type
  • a list of data items of real data type
  • a list of data items of different data type
  • a list of data items of same data type
Show Answer Report

4. Array name is

  • an array variabl
  • a keyword
  • a common name shared by all elements
  • not used in a program
Show Answer Report

5. One-dimensional array is known as

  • vector
  • table
  • matrix
  • an array of arrays
Show Answer Report

6. The array elements are represented by

  • index values
  • subscripted variables
  • array name
  • size of an array
Show Answer Report

7. Array elements occupy

  • subsequent memory locations
  • random location for each element
  • varying length of memory locations for each elements
  • no space in memory
Show Answer Report

8. The address of the starting element of an array is

  • represented by subscripted variable of the starting element
  • cannot be specified
  • represented by the array name
  • not used by the compiler
Show Answer Report

9. Identify the wrong statement

  • subscripts are also known as indices
  • Array variables and subscripted variables are same.
  • Array name and subscripted variables are different
  • Arrays name and subscripted variables are same.
Show Answer Report

10. Arrays subscripts in C always start at

  • -1
  • 0
  • 1
  • any value
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test