+ 1
Different of the %d %i in the c language.
C language
3 Respostas
+ 6
%i - integer
%d - signed decimal integer
+ 4
%i recognizes and parses base notation for input in octal (0<number>) and hexadecimal (0x<number>), %d only accepts base 10 numbers. Both %i and %d accepts sign symbol (+ and -).
* More about input format specifiers 👇
http://www.cplusplus.com/reference/cstdio/scanf/
+ 1
Thanks bro. I will try it.