C Arrays Questions and Answers
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
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
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
4. Array name is
- an array variabl
- a keyword
- a common name shared by all elements
- not used in a program
6. The array elements are represented by
- index values
- subscripted variables
- array name
- size of an array
7. Array elements occupy
- subsequent memory locations
- random location for each element
- varying length of memory locations for each elements
- no space in memory
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
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.