MCQ Single Best Answer Moderate

QOutput?

#include 
int main() {
    int a[3] = {5,10,15};
    printf("%d", a[1]);
    return 0;
}

ID: #24916 SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and Structure 2 views
Question Info
#24916Q ID
ModerateDifficulty
SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and StructureTopic

Choose the Best Option

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

  • A 5
  • B 10
  • C 15
Correct Answer: Option B

Explanation

a[1] হলো second element।

a[0]=5, a[1]=10

Output: 10

Share This Question

Challenge a friend or share with your study group.