+ 3
Anyone explain about "%i" format identifier?
10 Respuestas
+ 4
%d and %i are the same, except when you're using the scanf() function.
When using scanf() the %d expects a decimal number and %i expects an integer of any type, octal, hex, decimal, etc.
Entering a hex number like 0xDEAD would fail using %d but works as expected with %i.
+ 8
Integer
+ 7
Use for int
+ 3
It is a placeholder for an integer value
+ 2
well said cluck'n'coder
thanks a lot...
+ 2
%i is used for signed integer..in scanf() function
0
dear airree...
explain me with example program
0
ok got it...
what is the difference between %d and %i???