Question: what is the difference between i and d in c?
Answer: For example – If we want to read and print integer using scanf() and printf() function, either %i or %d is used but there is subtle difference in both %i and %d format specifier. %d specifies signed decimal integer while %i specifies integer. There is no difference between the %i and %d format specifiers for printf.