+ 1

Please is %d for integer ??

28th Apr 2020, 6:53 PM
Providence
Providence - avatar
2 Réponses
0
Yes, %d is the format specifier for integer types - the 'd' stands for decimal. In languages like C and C++ %i works as well but isn't as widely used. %d and %i are pretty much the same when printing values, but there is a slight difference when scanning in values with scanf(). But I'm not sure which language you're using so it may be irrelevant to you.
28th Apr 2020, 7:01 PM
Damyian G
Damyian G - avatar
0
Oki thanks i am using C
28th Apr 2020, 7:55 PM
Providence
Providence - avatar