Programming Tutorials

Comment on Tutorial - Simple arithmetic calculations in C By Jeffrey



Comment Added by : Fred Mah

Comment Added at : 2012-09-22 07:40:27

Comment on Tutorial : Simple arithmetic calculations in C By Jeffrey
Dear Gurus, I have arrived at your site lloking for an understanding of scanf and printf. To my horror at first sight the assosciated characters d i o u x c s e,f,g % are used with the assumption that to discuss them and how to use them is so basic that they are not discussed.
In embedded applications e.g. pic uCs I program quite well in integer arithmetic. This of course has a big problem when you want decimals. Eg. 355/113 is a good approximation to PI. There are work arounds to preserve the decimals, but C as used in uC would seem to be a better way.
Which brings me back to the C language and scanf, printf....
where do I find an article which step by step shows the usage of the formaters , hopefully with examples?
Bye and thanks
Fred
Madrid


View Tutorial