What will be the output of following program segment? int num[5] = (1. 2. 3): printf("%d %d", num[0]. num[3]): (a) 1, 2 (6) 1.0 (c) 1, 3 (d) 2,3 .
Answers
Answered by
2
Answer:
your question is wrong sir.
int num[5] = {1, 2, 3, 4, 5};
int i, j;
i = num[1];
j = num[2];
printf("%d,%d,%d", i,j, num[0]);
options is
{a} 1, 2, 3
{b} 2,3,1
{c} 1,2,0
{d} 3,4,5
Explanation:
ans is {b} 2,3,1
because in which we find the result. in the question i is 2, j is 3 and num 0 is 1 . so the ans. is option b.
hope it is helpful
mark me as brainlist
Answered by
0
What will be the output of following program segment? int num[5] = (1. 2. 3): printf("%d %d", num[0]. num[3]): (a) 1, 2 (6) 1.0 (c) 1, 3 (d) 2,3 .
Similar questions