Home > Back-end >  C language ah ah
C language ah ah

Time:03-23

Float is must be a decimal? If the integer programming float type 1, for example, if it is necessary to add a. 0 f

CodePudding user response:

Yes,
Constant type,

CodePudding user response:

Not necessarily, as well as constant is 1, 1 f said have decimal, or float a=1; Is the assignment 1 a, will be 1 (int) type to float

CodePudding user response:

Please refer to the "c + + floating-point variable storage"
Wish I could help you!
  • Related