0% found this document useful (0 votes)
27 views

Let Us C Part 1

Dive into c language which is foundation of all programming language

Uploaded by

Md Nisu Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Let Us C Part 1

Dive into c language which is foundation of all programming language

Uploaded by

Md Nisu Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Introduction and

History of C-
Language
Lets Play Code

By Fahad Khan
History And Introduction

 The C Language is developed by Dennis Ritchie for creating


system applications that directly interact with the hardware
devices such as drivers, kernels, etc.
 C programming is considered as the base for other
programming languages, that is why it is known as mother
language.
 Mother language
 System programming language
 Procedure-oriented programming language
 Structured programming language
 Mid-level programming language
C as a procedural language

 A procedure is known as a function, method, routine, subroutine, etc.


A procedural language specifies a series of steps for the
program to solve the problem.
 A procedural language breaks the program into functions, data
structures, etc.
 C is a procedural language. In C, variables and function prototypes
must be declared before being used.
Why Learn C Programming?

 C helps you to understand the internal architecture of a computer,


 How computer stores and retrieves information.
 After learning C, it will be much easier to learn other programming
languages like Java, Python, etc.
 C is considered as a middle-level language because it supports the
feature of both low-level and high-level languages.
1. A Low-level language is specific to one machine, i.e.,
machine dependent. It is machine dependent, fast to run. But
it is not easy to understand.
2. A High-Level language is not specific to one machine, i.e.,
machine independent. It is easy to understand.
Structure of a C program

LPC
Header Files Inclusion:

 A header file is a file with extension .h which contains C function


declarations
 Some of C Header files:
 stdio.h – Defines core input and output functions
 stdlib.h – Defines numeric conversion functions, pseudo-random
network generator, memory allocation
 string.h – Defines string handling functions
 math.h – Defines common mathematical functions
Main Methodand Variable
Declaration
 The variables are to be declared before any operation in the function.
 By Default the main function is “int” type return

void main()
{

Int b;

};
Body

 All codes are written inside a main function


 And the main functions is a body of C language
 It starts with open Curly Bracket “ {“
 And ends with close Curly Bracket “ } ”
 After Each Statements it must be end with semicolon “ ;”
Return Statement

 The return statement refers to the returning of the values from a


function.
Understand first program

 #include <stdio.h>
 int main(void)
 {
 printf(“Lets Play Code");
 return 0;
 }

You might also like