MCQ Single Best Answer Moderate

Q
int add(int a, int b) {
    return a + b;
}

ID: #24927 SEMESTER – I - COMS - Unit – 3: Section 5: Introduction to C: User defined functions 1 views
Question Info
#24927Q 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 void
  • B sum of a and b
  • C address
  • D error
Correct Answer: Option B

Explanation

এই function দুটি সংখ্যার যোগফল return করে।

return a + b; মানে দুটি value যোগ করে return করা।

Share This Question

Challenge a friend or share with your study group.