Presentation Presentation on •
PresentationPresentation on
•
5
4
3
2
1
What is C language
C is a computer programming language. Which is developed in 1972 by “Dennis Ritchie” at the Bell Telephone
Laboratories for use with the Unix operating system.
C was evolved from ALGOL, BCPL and B language. C uses many concepts from these languages.
Although C was designed for implementing system software, it is also widely used for developing application software.
It is widely used on a great many different software platforms and computer architectures, and several popular compilers exist. C has greatly influenced many other popular programming languages, most notably C++, which originally began as an extension to C.
Content of C language
Variable Data Type OperatorControl statement
Header File
Arrays& Strings
Functions PointersStructures& Unions
Loops
Header File• In C programming languages, a header file or include file is a file, usually in the form of source code, that is automatically included in another source file by the compiler.
• Typically, header files are included via compiler directives at the beginning (or head) of the other source file.
C has different types of Header File.
conio.hstdio.h stdlib.h ctype.h process.h
Variable & Data Type
The Variable are the memory places which provide the memory to the coming up value. The variable is a data name. It have a unique nameIn C language Variable are two types.
Variable
2.Non-VolatileVolatile
1.
Data Type
2.Built InUser Define
1. 3.Derived
Data Type are three types.
Data Type indicates the type of value the variable can contain. It specifies the size of the variable that will be occupied by it inmemory.
Operators & Pointers
In C language many of kinds of operators are present like . . .
Operators
Pointers The Pointer is a variable that contains the address of
a location in memory. The location is the starting point of an allocated object, such as an object or value type, or the element of an array.
2.RelationalArithmetic
1.ConditionalLogical
3. 4.
The Operator is a symbol that represents a specific action.For example, a plus sign (+) is an operator that represents addition.
Control Statement & Loops
C program is a set of statements. The control statement to see Whether a particular condition has occurred or not.C supports some statement like . . .
Control statement
Loops
2.while loopfor loop
1. 3.do while loop
In C language Loops are three types.
2. switch statement
if statement1. 3. goto
statement
Loops are used to execute the statements repeatedly .
Arrays & Strings
An array is a fixed-size sequenced collection of the same data type. It is simply a grouping of like-type data.C language has three types of Arrays . . .
Arrays
Strings
A string is a sequence of characters that is treatedas a single data item.
2.Two- DOne- D
1. 3.Multi- D
Functions
A function is a self-contained block of code that performs a particular task.
Once a function has been designed and packed, it can be treated as a ‘black box’ that takes some data from the mainprogram and return a value.
C functions classified into two categories,
User-Define FunctionsLibrary Functions
1. 2.
Structures & Unions
A structure is a collection of data items of different types.
C language supports a constructed data type know as structures, A mechanism for packing data of different types. For example ,It can be used to represent a set of attributes, such as student_name, roll_number and marks.
Structures
Unions Unions are a concept borrowed from structures.
A union contain many members of different types, it can handle Only one member at a time.