Showing posts with label printf. Show all posts
Showing posts with label printf. Show all posts
Wednesday, 15 January 2014
Tuesday, 14 January 2014
c programming, printf, what is printf
printf("lets start\n");
use of printf
printf("lets start\n");
This is the printf command and it prints text on the screen. The data that is to be printed is put inside brackets. You will also notice that the words are inside inverted commas because they are what is called a string. Each letter is called a character and a series of characters that is grouped together is called a string. Strings must always be put between inverted commas. The \n is called an escape sequence and represents a newline character and is used because when you press ENTER it doesn't insert a new line character but instead takes you onto the next line in the text editor. You have to put a semi-colon after every command to show that it is the end of the command.
Subscribe to:
Posts (Atom)
