Knowing the function printf
I found here in the texts by missing directories my partition ~ / I found this very interesting text about the printf function, correct the errors of Portuguese and I'm posting it.
################################################## #
# # # Printf Detailing # # #
################################################## #
made by Blood_Sucker!
NOTE: This text eh for the newbie community on the planet, so if you think you're elite, you will not see anything good here.
============
Summary |
============
1. Introduction
2. Understanding printf
3. Escape characters defined by C
4. Breaking a string of characters in two lines
5. Determining the number of characters that printf printed
6. Showing values of type int using printf
6.1. Printing formatted integer
6.1.1. Shifting the right impression
6.1.2. Preceding zeros of a shift
6.2. Printing an integer value Octal or Hexadecimal
6.3. Printing a prefix before the octal values or Hex
6.4. Printing values of type unsigned int using printf
6.5. Printing values of type long int using printf
7. Printing of float values using printf
7.1. Printing of float values in exponential format
7.2. Printing values of type float in other ways
7.3. Printing formatted float values
8. Printing values of type char using printf
9. Printing a string of characters using printf
9.1. Printing a string type Near and Far
10. Printing an address of a pointer using printf
11. Printing something preceded by a plus or minus
12. ANSI
12.1. Using the ANSI driver to clean your screen (clear)
12.2. Using the ANSI driver to display the colors of the screen
12.3. Using the ANSI driver to position the cursor
13. Administrivia
1. Introduction
=============
Well friends, I've been reading some things about C but had never found the net, and absolutely loved to write in detail about the printf function of the C programming language, although q be a simple function to print the screen contains various tricks to use it, thereby gaining time and space in code of course, wiping your code even more you will have a faster processing and such ... Despite all this, this text is merely a basic guide on this feature in order to understand the same, just a very basic knowledge of C and have notions about data types decimal, hexadecimal, binary and octal. But nothing so difficult. It is a text beeeem idiot, but can be useful for those who are beginning, and for those who already know, because although simple, has a lot detalhezinhos I never found the net =]
And in the end I teach to handle ANSI color and tals ... Several friends did not know my q just could not do that. And as Nash says, we are all newbies, we have much to learn. You may be thinking I'm an idiot who just wants to write one of these ridiculous textinho me out saying "ohh, I wrote to unsekurity. If you think this guy, okay, I think the same. But it has nothing to do. I contribute to what can I.

















Recent Comments