MCQ Single Best Answer Not Set

Qনিচের কোনটি একটি Integer Constant?

ID: #24892 SEMESTER – I - COMS - Unit – 3 Introduction to C: Basic Structure 2 views
Question Info
#24892Q ID
Not SetDifficulty
SEMESTER – I - COMS - Unit – 3 Introduction to C: Basic StructureTopic

Choose the Best Option

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

  • A 25
  • B 3.14
  • C 'A'
  • D "Hello"
Correct Answer: Option A

Explanation

যে Constant-এ শুধুমাত্র পূর্ণসংখ্যা থাকে তাকে Integer Constant বলা হয়।

উদাহরণ:

  • 10
  • 25
  • 100
  • -50

এখানে 25 একটি পূর্ণসংখ্যা, তাই এটি Integer Constant।

অন্যদিকে:

  • 3.14 → Floating Constant
  • 'A' → Character Constant
  • "Hello" → String Constant

উদাহরণ:

int number = 25;

এখানে:

  • int → Integer Data Type
  • 25 → Integer Constant

Share This Question

Challenge a friend or share with your study group.