MCQ Single Best Answer Moderate

QStructure variable declare করার সঠিক উপায় কোনটি?

ID: #24897 SEMESTER – I - COMS - Unit – 3: Section 4: Introduction to C: Arrays and Structure 2 views
Question Info
#24897Q 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 struct student s1;
  • B structure student s1;
  • C struct = student s1;
  • D student struct s1;
Correct Answer: Option A

Explanation

C ভাষায় structure variable declare করার সঠিক পদ্ধতি হলো struct keyword ব্যবহার করা।

কেন A সঠিক: struct student s1; এখানে student structure টাইপের s1 নামের variable তৈরি করা হয়েছে।

কেন B ভুল: structure keyword C ভাষায় নেই।

কেন C ভুল: syntax সম্পূর্ণ ভুল এবং invalid assignment করা হয়েছে।

কেন D ভুল: keyword এর অবস্থান ভুল।

Share This Question

Challenge a friend or share with your study group.