compiler « decimal « C Data Type Q&A

Home
C Data Type Q&A
1.binary
2.bit
3.byte
4.char
5.character
6.decimal
7.Development
8.float
9.hex
10.integer
11.prime
12.random
13.struct
C Data Type Q&A » decimal » compiler 

1. How can you make a C compiler assume decimal literals (e.g. 1.23) are float and not double?    stackoverflow.com

In my source code, if I write 1.23 as a literal, e.g. doThis(1.23), gcc assumes it's a double. Rather than type doThis((float) 1.23), is there a way to use floats for decimal ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.