MCQ Single Best Answer Moderate

Q

#include 
int main() {
    int a[4] = {10,20,30,40};
    printf("%d", a[0]);
    return 0;
}

ID: #24915 SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and Structure 2 views
Question Info
#24915Q 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 10
  • B 20
  • C 30
  • D 40
Correct Answer: Option A

Explanation

a[0] হলো প্রথম element।

Output: 10

Share This Question

Challenge a friend or share with your study group.