Which of the following statements will create and initialize a feelnfo array named fee?

”fee
”fee
”feeInfo
”feeInfo
; E. feeInfo fee = {0,0};” correct=”option3″]

The correct answer is E. feeInfo fee = {0,0};

Option A is incorrect because it creates a two-dimensional array with two rows and two columns, but the question asks for a one-dimensional array.

Option B is incorrect because it assigns the values 0 and 0 to the variables fee and feeInfo, but the question asks for a one-dimensional array named fee.

Option C is incorrect because it assigns the values 0 and 0 to the variable feeInfo, but the question asks for a one-dimensional array named fee.

Option D is incorrect because it creates a two-dimensional array with one row and two columns, but the question asks for a one-dimensional array.

Option E is correct because it creates a one-dimensional array named fee with two elements, each of which is initialized to the value 0.

Exit mobile version