These modifiers determine how printf functions interpret the next input argument, arg[f].
These modifiers affect how all the printf functions interpret the data type of the corresponding input argument arg.
Both F and N reinterpret the input variable arg. Normally, the arg for a %p, %s, or %n conversion is a pointer of the default size for the memory model.
h, l, and L override the default size of the numeric data input arguments. Neither h nor l affects character (c, s) or pointer (p, n) types.
| Modifier | Type of arg | arg is interpreted as ... |
|---|---|---|
| F | Pointer (p, s and n) | A far pointer |
| N | A near pointer (NOTE: N can't be used with any conversion in huge model.) | |
| h | d i o u x X | A short int |
| l | d i o u x X | A long int |
| e E f g G | A double | |
| L | e E f g G | A long double |
These modifiers affect how all the printf functions interpret the data type of the corresponding input argument arg.
Both F and N reinterpret the input variable arg. Normally, the arg for a %p, %s, or %n conversion is a pointer of the default size for the memory model.
h, l, and L override the default size of the numeric data input arguments. Neither h nor l affects character (c, s) or pointer (p, n) types.
No comments:
Post a Comment