C Programming - Arrays - Discussion
Discussion Forum : Arrays - Point Out Correct Statements (Q.No. 4)
4.
Which of the following statements are correct about 6 used in the program?
int num[6];
num[6]=21;
int num[6];
num[6]=21;
Answer: Option
Explanation:
The statement 'B' is correct, because int num[6]; specifies the size of array and num[6]=21; designates the particular element(7th element) of the array.
Discussion:
2 comments Page 1 of 1.
Revati said:
4 years ago
How 7th element? Explain please.
Revati said:
4 years ago
How 7th element? Explain please.
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers