C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC

1,224

7

Posted in TechnologyComputers

Introduction: C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC


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.
 

Share

    Recommendations

    • Spotless Contest

      Spotless Contest
    • Space Challenge

      Space Challenge
    • Microcontroller Contest

      Microcontroller Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments