differences %d and %i

In the C programming language, we know there is a general library function is used to display the results of his prototype in stdio.h title file (the default input output header) as putchar (), puts () and printf ().
putchar and puts are the two function libraries that can be used to display the results did not preformatted. The point is the width and shape of the display can not be regulated. While printf () can be used to format the form of appearance. Then printf () can be used to display the result set format, because it can use the format code. Will discuss more about the code format (the format specifier), especially% d and% i.
%d and %i both have utility for displaying a decimal integer value. What distinguishes only coverage (range) decimal numbers only.

0 comments

Posting Komentar