The difference between "d" and "i"
#1

So what is actually the difference between these letters?

d is used for an integer and so is i.
Reply
#2

%d and %i are the same.
Reply
#3

Take a look at http://stackoverflow.com/questions/1...nd-d-in-printf

.
Reply
#4

i and d are both used for integers.
Reply
#5

For example:
%s have %d Money - Smokkr have 500 Money.
Reply
#6

If i'm not wrong "i" stands for integer and "d" for decimal, for example:

033 would be with i and 33 with d because it's decimal. However don't worry they're almost the same, so feel free to use both of them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)