Page 1 :
ve, ~, C _, >, i;, —, rd, =, ee, , , , FUNCTIONS, , , , A Function can be defined as a subdivided program of a main, program enclosed within flower brackets. Functions can be, called by the main program to implement its functionality., This procedure provides Code Reusability and Modularity., , ——<————, 1. Library Functions, , 2. User-Defined Functions
Page 3 :
eee, There are two important reasons of why we are using functions:, , 1. Reusability, , Once the function is defined, it can be reused over and over, again., , 2. Abstraction, , If you are just using the function in your program then you, don’t have to worry about how it works inside!, , scanf function, ~
Page 4 :
Advantages, , >» Program can be divided into a smaller, simpler task., >» Allowing the code to be called many times, , » Easier to read and update, , >» Easier Error handling, , » Code reusability
Page 5 :
How the function works??, , ® C program doesn't execute the statement in function until the, function is called., , ® When function is called the program can send the function, information in the form of one or more argument., , ® When the function 1s used it 1s referred to as the called function, , ® Functions often use data that is passed to them from the calling, function, , ® Data is passed from the calling function to a called function by, specifying the variables 1n a argument list., , *® Argument list cannot be used to send data. Its only copy, data/value/variable that pass from the calling function.