LearnFrenzy
Sign in Take a free test

Declarations and Initializations · Declarations MCQ · Question 3

By default, a real number constant in C is a … Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 3 Back to Exercise

By default, a real number constant such as 2.5 is treated as a…

  • A float
  • B double Correct
  • C long double
  • D int
Correct Answer: Option B

Floating constants without a suffix have type double. Add f for float or L for long double.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links