#1
27th February 2016, 06:11 PM
| |||
| |||
Ld Format String
Hii sir, I wants to get the Length Modifiers String Format will you please provide me the Full description of the Length Modifiers String Format ?
|
#2
27th February 2016, 06:11 PM
| |||
| |||
Re: Ld Format String
As you asking for the Length Modifiers String Format the descriptions of the String format of the Length Modifiers are given below : Length modifier h Length modifier specifying that a following d, o, u, x, or X conversion specifies applies to a short or unsigned short argument. hh Length modifier specifying that a following d, o, u, x, or X conversion specifier applies to a signed char or unsigned char argument. l Length modifier specifying that a following d, o, u, x, or X conversion specifier applies to a long or unsigned long argument. ll, q : Length modifiers specifying that a following d, o, u, x, or X conversion specifier applies to a long long or unsigned long long argument. L : Length modifier specifying that a following a, A, e, E, f, F, g, or G conversion specifier applies to a long double argument. z : Length modifier specifying that a following d, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument. t : Length modifier specifying that a following d, o, u, x, or X conversion specifier applies to a ptrdiff_t or the corresponding unsigned integer type argument. j : Length modifier specifying that a following d, o, u, x, or X conversion specifier applies to a intmax_t or uintmax_t argument. The following example illustrates the use of %ld to format an NSInteger and the use of a cast. NSInteger i = 42; printf("%ld\n", (long)i); |
|