Basics of C Program and Structure of C Program

By | January 10, 2019

C Programming Language

C Was an initial Language for Development Work. C was Adopted as a System Development Programming Language because it Produces Code that runs nearly as fast as the code written in Assembly Language. The C Programming Developed by Dennis Ritchie in 1969 at AT&T Lab. The C Language is the low-Level Language to memory, Simple set of Keywords. Many of Present using Languages based on C Language only they used the Syntax and Features of C language.

  • Operating System.
  • Language Compilers.
  • Assemblers.
  • Text Editors.
  • Print Spoolers.
  • Network Drivers.
  • Data Bases.
  • Language Interpreters.
  • Utilities.

The Best thing is the C Program is we May write the Code from 3 lines to Millions of Lines.

#include <stdio.h>
int main()
{
/* my first program in C */
printf(“Hello, Programming World \n”);

return 0;
}

The C Compiler

The Source Code is written in Source file. The Human readable only Source Code. It Needs to Compiled into Machine Language. For that reason introduce the C Compiler it convert the Source Code into Machine Language.

Program Structure of a C Program 

Commanly a C program Consists

  • Preprocessor Commands
  • Functions
  • Variables
  • Statements and Expressions
  • Comments

#include <stdio.h>
int main()
{
/* my first program in C */
printf(“Hello, C Language Programming! \n”);

return 0;
}

Key Words in C Language

C Language has Several Keywords they are as follows

auto               else                 long                switch
break              enum             register           typedef
case               extern             return             union
char              float                 short               unsigned
const             for                   signed             void
continue       goto                sizeof                 volatile
default           if                     static                 while
do                 int                   struct _Packed     double

Basics Data Types Support in C Language

integer – int:
Floating – float
Character – Char
Void

Leave a Reply

Your email address will not be published. Required fields are marked *