Ravi
Ravi
Ravi
C programming
Dennis Ritchie
CONTENT OF C LANGUAGE
Data Control
Header Files Variable Operator
Type statement
Structures &
Loops Arrays Functions
Unions
HEADER FILE
• The files that are specified in the include section is called as Header File .
• Header file is given an extension .h.
• C Source file is given an extension .c.
6.Increment &
5.Assignment 7.Bitwise 8.Size of
Decrement
CONTROL STATEMENT
• C program is a set of statements.
• Such statements by which we determine the flow of a program are called
Control Statement.
• C supports some statement like . . .
2.switch 3.goto
1.if statement
statement statement
LOOP
• Loops are used to execute the statements repeatedly.
• Loops in C language are used to execute a code again and again.
• In C language loops are three types.
3. do-while
loop
ARRAY
• An array is defined as the collection of similar type of data items stored at
contiguous memory locations.
• An array is a derived data type in c programming.
• Arrays are used to store multiple valuss in a single variable.
• C language has three types of Arrays . . .
• Syntax:-
1D Arrays: int arr[n];
2D Arrays: int arr[m][n];
FUNCTION
• A function is a self-contained block of code that performs a particular task.
• Syntax:-
return_type name_of_function (Type1 ARG1,Type2
ARG2,Type3 ARG3)
• C functions classified into two categories.
1. Library 2. User-Define
Functions Functions
STRUCTURE
• A structure is a collection of data items of different types.
• A structure contains an ordered group of data objects.
• Each variable in the structure is known as a member of the structure.
• C language supports a constructed data type know as structures.
UNIONS
• Unions are a concept borrowed from structures.
• A union is a special data type available in C that allows to store different data
types in the same memory location.
Thank you to all..