Top Banner
Presentation Presentation on
20
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: C presentation

PresentationPresentation on

Page 2: C presentation

5

Page 3: C presentation

4

Page 4: C presentation

3

Page 5: C presentation

2

Page 6: C presentation

1

Page 7: C presentation
Page 8: C presentation
Page 9: C presentation
Page 10: C presentation
Page 11: C presentation

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.

Page 12: C presentation

Content of C language

Variable Data Type OperatorControl statement

Header File

Arrays& Strings

Functions PointersStructures& Unions

Loops

Page 13: C presentation

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

Page 14: C presentation

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.

Page 15: C presentation

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.

Page 16: C presentation

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 .

Page 17: C presentation

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

Page 18: C presentation

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.

Page 19: C presentation

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.

Page 20: C presentation

Shivendra srivastwa

http://www.apsmind.com