Question: Which of the following statements correctly initializes an array to have the number 5 in all of its elements? a: int n[3] = 5 b:
Which of the following statements correctly initializes an array to have the number 5 in all of its elements?
a: int n[3] = 5
b: int n = {5, 5, 5, 5}
c: int n[] = (5, 5, 5)
d: int n[5] = {5, 5, 5, 5, 5}
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
