Multiple Choice
Moderate
QOutput?
#include
void show() {
printf("Hello C");
}
int main() {
show();
return 0;
}
#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
8 views
Question Info
#24933Q ID
ModerateDifficulty
SEMESTER – I - COMS - Unit – 3: Section 5: Introduction to C: User defined functionsTopic
Your Answer
Select All That Apply
Tick every correct option, then press Check Answer.
Correct Answer
Explanation
এখানে একটি void function ব্যবহার করা হয়েছে যা কোনো value return করে না, শুধু print করে।
Flow:
- main() থেকে show() call করা হয়েছে
- show() → printf("Hello C") execute করে
Output: Hello C
কেন C সঠিক: function সরাসরি string print করছে।
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic