MCQ Single Best Answer Moderate

QOutput?

#include 
int main() {
    int a[3] = {2,4,6};
    printf("%d", *(a+2));
    return 0;
}

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

Explanation

a+2 মানে 3rd element এর address।

*(a+2) = a[2] = 6

Output: 6

Share This Question

Challenge a friend or share with your study group.