There is bunch of C tutorials on the web but they are all written with the lack of compassion towards people who's 1st programming language happens to be C. My main goal is to simplify it so much that a 7 year old kid with the knowledge of alphabeth can understand it. To write and execute C written programs we need an
Integrated Development Environment (IDE) for the C/C+ with GCC compiler. My first was Dev-C++ and I still use it sometimes because it's very simple. I will talk about IDE programs in a few days, now let's start with our first program:
#include <stdio.h>
int main (){
printf("\nHello World\n");
return 0;
}
Explanation:
#include - includes a group of functions from the filename between signs < and >
stdio.h - file that contains list of standard functions like printf
int main () - main function
{ and
} - borders that group commands to one function, in this case to main function
printf - is a function for printing text between " and " on the screen
\n - command for moving onto the next line on the screen
; - a sign which means end of the standard function
return 0; - with this command we return a value 0 to the operating system telling him that our program is running successfully
That's it for today, if you have any questions let me know in the comments.
Next on the list are IDE programs.