| The First C Program - Explanation There you go! You already write instruction to the Computer Processor to display the character that you already wrote in the C code (Processor please display this character!) on the Computer Monitor. All of that is a C program that the Computer Processor understand. In order to become master in C programming you just need to know more computer instruction in this case C instruction and choose the one necessary to perform the task we like. Here is more explanation : • #include <stdio.h> - includes the "standard I/O library" into your program. • int main() - declares the main function. • In C, the { and } symbols mark the beginning and end of a block of code. • The printf statement in C allows you to send output to standard out (for us, the screen). The portion in quotes is called the format string and describes how the data is to be formatted when printed. The format string can contain string literals such as (Processor please display this character!) symbols for carriage returns (\n), and operators as placeholders for variables. Next Page >> |