The first question here.
I learned the ob using COAN book and it classifies% d for integer,% F for float,% d for float, double.
Using iOS, it seems like it is: For integer and% f float for% i and% d
Can someone confirm and possibly logic I can understand that I have already seen Apple's string programming guide.
Thank you in advance.
is followed, therefore% d and% I are both 'signed integers',% f Will show 'Decimal Floating Point' and Floats or Doubles.
Why and why I have been repeated, this is because% f floats and doubles that the things given through the alipisyse are subject to the C-promotion rules if you pass any integer type Which is smaller than an int, it will be promoted to a full size int to pass. Similarly, if you pass a float, it will be promoted in duplication. So the thing to get the argument should be considered only in the context of the integer versus floating point, not about storage size
Comments
Post a Comment