MCQ
Single Best Answer
Moderate
QOutput?
#include
struct student {
int age;
int marks;
};
int main() {
struct student s = {18, 90};
printf("%d", s.marks);
return 0;
}
#include
struct student {
int age;
int marks;
};
int main() {
struct student s = {18, 90};
printf("%d", s.marks);
return 0;
}
ID: #24918
SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and Structure
2 views
Question Info
#24918Q ID
ModerateDifficulty
SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and StructureTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
Structure member access করা হয় dot (.) operator দিয়ে।
s.marks = 90
Output: 90
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic