Question: Suppose we initialize an array using the following line: int s [ 1 0 ] = { [ 8 ] = 1 3 } ;

Suppose we initialize an array using the following line:
int s[10]={[8]=13};
What is the value of s[2]?
Question 8Select one:
There is a syntax error.
cross out
13
cross out
Unknown at this time as the element has not be expressly initialized.
cross out
0
cross out
Garbage value.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!