Computer Science, asked by shraddhashrivastav, 4 months ago

void main()
{
int a[]={0,1,2,3,4,5,6,7,8,9,10};
int i=0,num;
num=a[++i+a[++i]]+a[++i];
printf("%d",num);
}
Select one:
a. 6
b. 7
C. 8
d. 9​

Answers

Answered by Oreki
2

Output:

  6

Explanation:

   Given,

        int[ ] a = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; and,

        num = a[++i + a[++i]] + a[++i]; also, i initially is 0.

   So,

        num = a[2 + a[1]] + a[3]

        num = a[2 + 1] + 3

        num = 3 + 3

        num = 6

Similar questions