7.3 TYPES OF FUNCTION

7.3 প্ৰকাৰৰ ফাংচন

There are two types of functions in C programming:

চি প্ৰ’গ্ৰামিংত দুটা প্ৰকাৰৰ ফাংচন আছে:

1. Library functions: These are the functions that are defined in the C header files. We use these functions while writing our programs. We have already used printf() and scanf() in our programs. There are more such as gets(), puts(), ceil(), floor() etc.

লাইব্ৰেৰী ফাংচনসমূহ: এইবোৰ হৈছে চি হেডাৰ ফাইলত নিৰ্ধাৰিত ফাংচন। আমি আমাৰ প্ৰ’গ্ৰামবোৰ লিখাৰ সময়ত এই ফাংচনবোৰ ব্যৱহাৰ কৰোঁ। আমি ইতিমধ্যে আমাৰ প্ৰ’গ্ৰামবোৰত প্ৰিণ্টফ() আৰু স্কেনফ() ব্যৱহাৰ কৰিছোঁ। ইয়াত আৰু অধিক আছে যেনে প্ৰাপ্তি(), পুট(), চিল(), মজিয়া() ইত্যাদি।

2. User-defined functions: These are the functions that are created by the programmer. The functions we discussed till now (calculate interest(), sum()) are user-defined functions. These are called user-defined functions because the programmer provides/writes definitions of these functions. But the definitions of library functions are already written in the system.

ব্যৱহাৰকাৰী-নিৰ্ধাৰিত ফাংচনসমূহ: এইবোৰ হৈছে প্ৰগ্ৰামাৰৰ দ্বাৰা সৃষ্টি কৰা ফাংচন। আমি এতিয়ালৈকে আলোচনা কৰা ফাংচনবোৰ (সূত গণনা কৰক(), যোগফল()) হৈছে ব্যৱহাৰকাৰী-নিৰ্ধাৰিত ফাংচন। এইবোৰক ব্যৱহাৰকাৰী-নিৰ্ধাৰিত ফাংচন বুলি কোৱা হয় কিয়নো প্ৰগ্ৰামাৰে এই ফাংচনবোৰৰ সংজ্ঞা প্ৰদান/লিখা। কিন্তু পুথিভঁৰালৰ কাৰ্যসমূহৰ সংজ্ঞা ইতিমধ্যে প্ৰণালীটোত লিখা হৈছে।