C PROGRAMMING FOR BEGINNERS: Using Printf Statement and Compiling GCC

1,220

7

Posted

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

  • Epilog Challenge 9

    Epilog Challenge 9
  • Sew Warm Contest 2018

    Sew Warm Contest 2018
  • Paper Contest 2018

    Paper Contest 2018
user

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

Tips

Questions

Comments