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
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
Math,
2 months ago
English,
4 months ago
Social Sciences,
4 months ago
English,
10 months ago
Social Sciences,
10 months ago