Fundamental Programming Fundamental Programming: Topics: C Function Introduction C Function Types C User-Defined Function
Fundamental Programming Fundamental Programming: Topics: C Function Introduction C Function Types C User-Defined Function
PROGRAMMING
FUNDAMENTAL
TOPICS:
C FUNCTION INTRODUCTION
C FUNCTION TYPES
C USER-DEFINED FUNCTION
MADE BY:
PARHAM AILIA
HISHAM YAQOOB
SANA JAWED
JAHANZEB USMAN
SHEIKH MUHAMMAD AL AMIN UL QADRI
KULDEEP KUMAR
TYPES OF FUNCTIONS :
1) BUILT IN FUNCTIONS:
The functions those are provided by c language
are refers to the Built in functions.
For Example :
2) USER DEFINED
FUNCTIONS :
A user defined function is a function which is defined by a user.
This function are made to recall a code repeatedly and it saves both
users time and space. There are three elements of user defined
functions:
1.
Function Declaration
#include<stdio.h>
intsum(int,int);
int main()
FUNCTION
DECLARATION
int x,y,result;
printf("Sum of %d + %d = %d",x,y,result);
return0;
FUNCTION
BODY
}
//Definition of function sum
intsum(inta,intb)
FUNCTION
DEFINITION
{
int res;
res = a + b;
return( res );
}
O
U
T
P
U
T
THE END