First Program in C Language

C is a structured programming language. So every C program and it’s statements must also be structured (in a particular manner). Every c program has the following general structure…

  1. Global variable declaration
  2. Function main() declaration
  3. Body of main() function
  4. User defined function if any

For making C program save the file with extension .c , compile and run the code as sample following code can be run.

First Compile the Program and then Run as the given menus in drop down.

   #include 
   #include 
   void main()
   {
      printf("Welcome to Sharp Tutorials Online Learning for C");
      getch();    // Halt the screen for output result (No Need in Dev C++)
   }

Video/ C Introduction

Watch video in full size
Wordpress Social Share Plugin powered by Ultimatelysocial