0% found this document useful (0 votes)
6 views8 pages

Anand: International College of Engineering

Uploaded by

ajay2574309
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views8 pages

Anand: International College of Engineering

Uploaded by

ajay2574309
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

ANAND

INTERNATIONAL COLLEGE OF ENGINEERING

NAME- AJAY SHARMA


BRANCH - CSE(AI)
ID NO - 21AI003
DATE - 12/11/22 1 slide
FUNCTION IN C PROGRAMMING
LANGUAGE

2dslide
Sli
WHAT IS A FUNCTION

❏ Function are used to divide a large C- program into smaller


pieces.
❏ A function can be Called multiple times to provide
reusability and modularity to C- program.
❏ Also called procedure or subroutine.

3 slide
FUNCTION:SYNTAX
• The basic syntax of a c function is written as follows:

Return_type function_name(date_type parameter1,


data_type parameter2 , …){
// code to be executed
}
4 slide
TYPES OF FUNCTIONS

1.Library function - Functions include in c header file.

.2.User defined function - Function created by c


programmer to reduce compexity of a program.

5 slide
USER DEFINED FUNCTION

1.Call by value
2.Call by reference

6 slide
ADVANTAGE OF C FUNCTIONS

1.We can avoid rewriting same logic through function.

2.We can divide work among programmers using


function.
3.We can easily debug a program using function.
7 slide
THANK YOU

8 slide

You might also like