Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
default type for constants like 12.5, 1e-3, float or double ?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Greenhorn, post: 2406989"] Hi, K&R says that "floating point constants contain a decimal point (123.4) or an exponent (1e-2) or both; their type is double; unless suffixed. The suffixes f or F indicate a float constant; l or L indicate a long double." the question is are these constants double by default unless suffixed with f or F ? Thanks in advance. greenhorn. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
default type for constants like 12.5, 1e-3, float or double ?
Top