SlideShare a Scribd company logo
“FUNCTION
IN
C- Programming”
PREPARED BY :- GAURANG VISHNOI
FUNCTION
What is function?
• A Function is a self contained block or a
separate block of a statements which are kept
together to perform a specific task in a
related manner.
• Every function must contain its definition as a
group of related statements to perform
specific task.
FUNCTION CALL
• Along with the function definition function call
is also important.
• A function has no use without its function call.
• A function can be called by any other function.
• A function which calls any other function is
called as caller function and the function
which is being called is known as called
function.
TYPES OF FUNCTION
FUNCTION
TYPE
PRE-
DEFINED
USER
DEFINED
PREDEFINED FUNCTION:-
• These are predefined function in c compiler
and their definitions are already available in
header file.
• Example- printf(), scanf(), pow().
• When ever we want to use these the function,
instead of writing the whole code we just
need to include the header file.
USER DEIFINE FUNCTION:-
• These are those function which are created by
user
User define function are of four type:-
1. No Argument No Return Type.
2. No Argument With Return Type.
3. With Argument No Return Type.
4. With Argument With Return Type.
WHAT ARE ARGUMENTS?
These are the data values which are passed from
the caller function to the called function.
TYPES OF ARGUMENTS:-
1. Actual Arguments.
2. Formal arguments
HOW FUNCTION WORKS
• Statement in the function are not executed
until the function is called
• A function can be called by any other function.
• A function which is calling any other function
is known as caller function.
• A function which is being called is known as
called function
ON
{
---------;
---------;
---------;
---------;
---------;
---------;
---------;
--------;
---------;
}
OFF
{
---------;
---------;
---------;
---------;
---------;
---------;
---------;
--------;
---------;
}
CH ++/CH --
{
---------;
---------;
---------;
---------;
---------;
---------;
---------;
--------;
---------;
}
VOL++/VOL--
{
---------;
---------;
---------;
---------;
---------;
---------;
---------;
--------;
---------;
}
ON OFF
CH+
CH-
VOL+
VOL-
THANK YOU…!!

More Related Content

PPTX
Function in C Programming
PPTX
PPT
Strings Functions in C Programming
PDF
Function in C
PPTX
Keywords in c language
PPTX
Functions in c
PPTX
functions in C and types
PPTX
Function in c
Function in C Programming
Strings Functions in C Programming
Function in C
Keywords in c language
Functions in c
functions in C and types
Function in c

What's hot (20)

PPTX
Introduction to JAVA
PPTX
Constants, Variables, and Data Types
PPT
User defined functions in C programmig
PPT
Strings
PPTX
Functions in C
PPTX
datatypes and variables in c language
PDF
FUNCTIONS IN C PROGRAMMING.pdf
PPTX
Function in c language(defination and declaration)
PPT
Functions in c++
PPTX
Array Of Pointers
PPT
Class and object in c++
PDF
Function overloading ppt
PPTX
PPTX
Static Data Members and Member Functions
PPTX
INLINE FUNCTION IN C++
PPT
Function in C Language
PPTX
Function in c program
PPTX
C Structures and Unions
PPTX
Constructor and destructor
PPTX
Type conversion
Introduction to JAVA
Constants, Variables, and Data Types
User defined functions in C programmig
Strings
Functions in C
datatypes and variables in c language
FUNCTIONS IN C PROGRAMMING.pdf
Function in c language(defination and declaration)
Functions in c++
Array Of Pointers
Class and object in c++
Function overloading ppt
Static Data Members and Member Functions
INLINE FUNCTION IN C++
Function in C Language
Function in c program
C Structures and Unions
Constructor and destructor
Type conversion
Ad

Similar to Functions in C - Programming (20)

PPTX
Python Functions
PPTX
Function different types of funtion
PPTX
FUNCTIONengineeringtechnologyslidesh.pptx
PPTX
FUNCTION.pptxfkrdutytrtttrrtttttttttttttt
PPTX
FUNCTIONS IN C.pptx
PPTX
FUNCTIONS IN C.pptx
PPTX
Chapter One Function.pptx
PPT
PPT
Chapter Introduction to Modular Programming.ppt
PPT
chapterintroductiontomodularprogramming-230112092330-e3eb5a74 (1).ppt
PPTX
Functions and structure in programming c
PPTX
FUNCTIONS IN R PROGRAMMING.pptx
PPTX
The function contains the set of programming statements enclosed by {}  when ...
PDF
SENG 208 Week -5 Python Functions Presentation
PPTX
functions in the c programming and the examples
PPTX
PPTX
PDF
662213141-Tuxdoc-com-Programming-in-c-Reema-Thareja.pdf
PPTX
User defined function in c
PDF
3-Python Functions.pdf in simple.........
Python Functions
Function different types of funtion
FUNCTIONengineeringtechnologyslidesh.pptx
FUNCTION.pptxfkrdutytrtttrrtttttttttttttt
FUNCTIONS IN C.pptx
FUNCTIONS IN C.pptx
Chapter One Function.pptx
Chapter Introduction to Modular Programming.ppt
chapterintroductiontomodularprogramming-230112092330-e3eb5a74 (1).ppt
Functions and structure in programming c
FUNCTIONS IN R PROGRAMMING.pptx
The function contains the set of programming statements enclosed by {}  when ...
SENG 208 Week -5 Python Functions Presentation
functions in the c programming and the examples
662213141-Tuxdoc-com-Programming-in-c-Reema-Thareja.pdf
User defined function in c
3-Python Functions.pdf in simple.........
Ad

Recently uploaded (20)

PPTX
Called To More (Final I Think) 08 03 2025.pptx
PPTX
Understanding-Communication-Berlos-S-M-C-R-Model.pptx
PDF
Instagram's Product Secrets Unveiled with this PPT
PPTX
IBA DISTRICT PIR PRESENTATION.POWERPOINT
PPTX
business communication final draftt.pptx
PPTX
Project and change Managment: short video sequences for IBA
PPTX
What is Clause, definition and structure
PPTX
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx
PDF
Parts of Speech Prepositions Presentation in Colorful Cute Style_20250724_230...
PPTX
Caption Text about Social Media Post in Internet
PPTX
Emphasizing It's Not The End 08 06 2025.pptx
PPTX
Learning-Plan-5-Policies-and-Practices.pptx
PPTX
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
PPTX
Role and Responsibilities of Bangladesh Coast Guard Base, Mongla Challenges
PPTX
Introduction to Effective Communication.pptx
PDF
Swiggy’s Playbook: UX, Logistics & Monetization
PPTX
Cohort Study_PPT.group presentation_pdf.pptx
PPTX
Presentation of Project of Enterprenuership topic- "Green Gaurdian"
PPTX
2025-08-03 Joseph 01 (shared slides).pptx
PPTX
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE
Called To More (Final I Think) 08 03 2025.pptx
Understanding-Communication-Berlos-S-M-C-R-Model.pptx
Instagram's Product Secrets Unveiled with this PPT
IBA DISTRICT PIR PRESENTATION.POWERPOINT
business communication final draftt.pptx
Project and change Managment: short video sequences for IBA
What is Clause, definition and structure
Non-Verbal-Communication .mh.pdf_110245_compressed.pptx
Parts of Speech Prepositions Presentation in Colorful Cute Style_20250724_230...
Caption Text about Social Media Post in Internet
Emphasizing It's Not The End 08 06 2025.pptx
Learning-Plan-5-Policies-and-Practices.pptx
Presentation for DGJV QMS (PQP)_12.03.2025.pptx
Role and Responsibilities of Bangladesh Coast Guard Base, Mongla Challenges
Introduction to Effective Communication.pptx
Swiggy’s Playbook: UX, Logistics & Monetization
Cohort Study_PPT.group presentation_pdf.pptx
Presentation of Project of Enterprenuership topic- "Green Gaurdian"
2025-08-03 Joseph 01 (shared slides).pptx
INTERNATIONAL LABOUR ORAGNISATION PPT ON SOCIAL SCIENCE

Functions in C - Programming