DEV Community

Leone Munyao
Leone Munyao

Posted on

Introduction to C Programmig

Image descriptionC is a procedural programming language, mainly developed as a system programming language to write the Unix operating system. Some of the main features of C language include;

  • Fast speed

  • Clean syntax

  • Low-level memory access

  • General Purpose and Portable
    Most of the recent programming languages have borrowed syntax from the C language. Some of them include PHP, JavaScript and Java.

Basic syntax structure

Image description

  1. #include stdio.h is the header file.
  2. int main() is the declaration of the main function. It is the entry point of a C Progam.
  3. The pair of curly braces encloses the body of the program.

How to Execute the above program
To execute the program we need to first compile it using a compiler and then we can run generated executable.

Thats basically a simple introduction of C Programmig language.

Image description

Top comments (1)

Collapse
 
dianawangui profile image
Diana Wangui

💯