C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC

by BASICON2k11 in Circuits > Computers

1510 Views, 8 Favorites, 0 Comments

C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC

hello1.jpg

VIDEO LINK: http://youtu.be/d9WhnIHQWWg
(Watch video for more information)

1.   Type in the following codes for displaying message using printf statements:

      #include <stdio.h>
     {
         printf("Your Message Here!\n");
         system("pause");
         return 0;
     }


NOTE:
   " Among the lines in the program, only one -- the one that starts with "printf" does the work that produces the output. The other lines provide "house-keeping chores" common to C program. "

In compiling with GCC:
   Type in the Command Prompt: gcc -pedantic filename.c -o filename.exe
   filename.c refers to the saved C file. -o means output file and it specifies the name of the output. filename.exe refers to name of your   
  executable file.