C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC

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.

Be the First to Share

    Recommendations

    • Pocket-Sized Speed Challenge

      Pocket-Sized Speed Challenge
    • Audio Challenge 2020

      Audio Challenge 2020
    • Maps Challenge

      Maps Challenge

    Discussions