Welcome to the World of C Programming


1.Introduction

2.Getting Started with C

3.My First Program

4.Decision Control Structure

5.Loop Control Structure

6.Case Control Structure

7.Function & Pointers

8.The C Preprocessor

9.Arrays

10.Strings

11.structures

12.Console Input Output Function

13.File Input Output Function

1.Introduction Of C Language

C is a programming Language Developed at AT & T's Bell laboratories of USA in 1972. It was Designed and Developed By Dennis Ritchie.
C is a programming language originally developed for developing the Unix operating system. It is a low-level and powerful language, but it lacks many
modern and useful constructs. The Unix operating system and virtually all Unix applications are written in the C language.

C has now become a widely used professional language for various reasons.
a. Easy to learn
b. Structured language
c. It produces efficient programs.
d. It can handle low-level activities.
e. It can be compiled on a variety of computers.

Facts about C
a. C was invented to write an operating system called UNIX.
b. C is a successor of B language which was introduced around 1970
c. The language was formalized in 1988 by the American National Standard Institue (ANSI).
d. By 1973 UNIX OS almost totally written in C.
e. Today C is the most widely used System Programming Language.
f. Most of the state of the art software have been implemented using C

2.Getting Started With C

A C program basically has the following form:
  • Preprocessor Commands
  • Functions
  • Variables
  • Statements & Expressions
  • Comments
The following program is written in the C programming language. Open a text file hello.c and put the following lines inside that file.
#include 

int main()
{
   /* My first program */
   printf("Hello, World! \n");
   
   return 0;
}