Skip to main content

Introduction to C

C Language Introduction
  • C is a general-purpose high level language.
  • It is also called as procedural programming language.
  • It was originally developed by Dennis Ritchie between 1969 and 1973.
  • It was mainly developed as a system programming language to write operating system.
  • Many languages like PHP, Java, Javascript have borrowed syntax/features directly or indirectly from C language.
Compiler:
         A compiler which is convert Human language into machine language.When you write any program in C language it need to compile that program using a C Compiler which converts your program into a language which is understandable by a computer. The format of  the machine language is Binary format. So before proceeding, make sure you have C Compiler available at your computer. It comes along with all flavors of Unix and Linux. You can also use online compilers incase you don't have one.


Writing First Program:


#include <stdio.h>
main(void)
{
    printf("Hello World");
}

Output:

Hello World                                                                                                                                              

Explanation as follows in the next page.

Comments

Popular posts from this blog

Control Statements do while loop

Control Statements do while loop:              This statements is just like a while loop, only difference is that condition is checked after the execution of the statements. In the do.. while loop first the statements is executed in the do block, the the conditions are checked from the while block. Untill the condition turns false, the statements or block of statements from the do block executes. Syntax of do.. while loop: do { Single statement or Block of statements; } while(Condition); Control Statements for loop: for  loop is one of the powerful statements which is similiar to while loop. In the for loop contains 3 conditions,  Initial value, conditions and increment or decrement. until the conditions satisfies, the block of statements will be executed. for statements are often used to process lists such a range of numbers: Basic syntax of for loop is as follows: for( initial value; Condition; increment/dec...