MCQ Single Best Answer Moderate

QOutput?

#include 

void show() {
    printf("Hello C");
}

int main() {
    show();
    return 0;
}

ID: #24933 SEMESTER – I - COMS - Unit – 3: Section 5: Introduction to C: User defined functions 2 views
Question Info
#24933Q ID
ModerateDifficulty
SEMESTER – I - COMS - Unit – 3: Section 5: Introduction to C: User defined functionsTopic

Choose the Best Option

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

  • A Hello
  • B C
  • C Hello C
  • D Error
Correct Answer: Option C

Explanation

এখানে একটি void function ব্যবহার করা হয়েছে যা কোনো value return করে না, শুধু print করে।

Flow:

  • main() থেকে show() call করা হয়েছে
  • show() → printf("Hello C") execute করে

Output: Hello C

কেন C সঠিক: function সরাসরি string print করছে।

Share This Question

Challenge a friend or share with your study group.