Hello friends C Programming language ke is artical me hum janege ki Pre-Defined and User-Defined Function kya hai aur in Function ka use hum C programming me kaise aur kyo karte hai example ke sath batayege to aap is artical ache se read kare.
What isPre-Defined and User-Defined Functions
C Language ek Functional programming language hai. Ab hum is language ka use karke kisi problem ka solution nikal na chahte hai to hume us problem ko chote chote hisso me batna hota hai aur in sabhi hisso ko alag alag solve karke last me un hisso ko + jodna padta hai. Kisi problem se sambandhit in hisso ko Function kaha jata hai. Aur ye Function kisi kaam ko puri tarah se pura karte hai. C Language me Function two types ke hote hai.
1. Jo Function hume directly use karne ke liye prapt hai unhe pre- defined ya built-in Function kahte hai. For example- printf(),clrscr(), getch() etc. Function pahle se C Language me prapt hai Aur inka use karne ke liye hume kewal un header file ko apne program me include karn padta hai. Jisme un Function ko define kiya gaya hai jab hum kisi predefined function ko apne source program me use karte hai. Is process ko Function Call karna bhi kahte hai
2. User Defined Function
User Defined Function we function hote hai jinhe user ke through program banate time develop kiye jate hai. Aur user ko jis samaye jis function ki jarurat hoti hai us time define kiya jata hai. Aur user apni requirement ke hisab se Function create kar sakta hai. C Language me program banate samaye main() ki jarurat hoti jo user define function hai. Aur kisi bhi program ka execution bhi issi Function se start hota hai. Aur kisi bhi Function ko aapas me call kiya ja sakta hai.
Aapko humne is artical me Pre- defined And user defined Function ke baare me hindi me bataya hai agar aapko hamara yah Artical acha laga ho to comment ke through bataye aur artical ko apne dosto ke sath share kare.
User Defined Function we function hote hai jinhe user ke through program banate time develop kiye jate hai. Aur user ko jis samaye jis function ki jarurat hoti hai us time define kiya jata hai. Aur user apni requirement ke hisab se Function create kar sakta hai. C Language me program banate samaye main() ki jarurat hoti jo user define function hai. Aur kisi bhi program ka execution bhi issi Function se start hota hai. Aur kisi bhi Function ko aapas me call kiya ja sakta hai.
Aapko humne is artical me Pre- defined And user defined Function ke baare me hindi me bataya hai agar aapko hamara yah Artical acha laga ho to comment ke through bataye aur artical ko apne dosto ke sath share kare.