>  Is there any difference between %i and %d ?

I don't believe there is, no.