Pages

Micro Search Engine

Custom Search
Welcome To Microcontroller And Interfacing Programming

My Map

My Translator

Sunday, 21 December 2008

Pattern Converting at Programming C (%)

Character %_ used as pattern conversion operator. Pattern conversion would very useful at the time of we present result to LCD. There are some kinds of pattern conversion along with the function. For example:


a. %d functioning to presents positive integer. example: sprintf(buf,"Angka %d",14);

b. %o functioning to presents integer octal number.

c. %x functions to present number heksa decimal integer.

d. %u useful to presents number decimal without sign.

e. %f useful to presents fractional number.

f. %i functioning to presents integer number.

g. %c presents character posed at ASCII number.

My Ranks