Programming Language Array in C Language Question #1414
Single Choice Not Set

QWhat will be the output of the program ?

#include<stdio.h>
void main()
{
    int a[5] = {5, 1, 15, 20, 25};
    int i, j, m;
    i = ++a[1];
    j = a[1]++;
    m = a[i++];
    printf("%d, %d, %d", i, j, m);
}

ID: #1414 Array in C Language 2,712 views
Question Info
#1414Q ID
Not SetDifficulty
Array in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A 3, 2, 15
  • B 2, 3, 20
  • C 2, 1, 15
  • D 1, 2, 5
Correct Answer

Explanation

Option A

Share This Question

Challenge a friend or share with your study group.