• Post author:
  • Post category:Blog
  • Reading time:2 mins read
  • Post last modified:June 12, 2024

Which of the following is a proper integer number (in the “C” language sense)?

  • 123456
  • 123,456
  • 123.456
  • 123_456
Explanation & Hints:

In C, a proper integer number is a sequence of digits without any separators such as commas, decimal points, or underscores. Based on this, let’s evaluate the provided options:

  1. 123456: This is a proper integer number.
  2. 123,456: This is not a proper integer number because it contains a comma.
  3. 123.456: This is not a proper integer number because it contains a decimal point.
  4. 123_456: This is not a proper integer number because it contains an underscore.

Therefore, the proper integer number in the “C” language sense is 123456.

For more Questions and Answers:

Basic data types, operations, and flow control (decision-making statements) Module 2 Test Answers Full 100%

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments