|
|
I would like to know the reason behind the difference in ouput when using different letters after % in printf() |
%d - int (same as %i)
%ld - long int (same as %li)
%f - float
%lf - double
%c - char
%s - string
%x - hexadecimal
-google |
printf("\na=%d",a);