7.5 RECURSIVE FUNCTION

7.5 ৰিকাৰ্চিভ ফাংচন

In the lest section of the chapter, let us study something very interesting!

অধ্যায়টোৰ পাছে শাখাত, আমি অতি আকৰ্ষণীয় কিবা এটা অধ্যয়ন কৰোঁ আহক!

We have already learned that a function calls another function. Accordingly, the program contra goes from the called the caller function to the called function. if a function. If a function calls itself, we name it as recursion. The function is called a recursive function.

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

The syntax of such a function is shown below. We see that are calling the function f () from the definition of f ();

এনে ফাংচনৰ বাক্যবিন্যাস তলত দেখুওৱা হৈছে। আমি দেখিছোঁ যে ফাংচনটোক এফ () সংজ্ঞাৰ পৰা () বুলি কোৱা হৈছে;

At first the function f () may be called from outside, maybe from main () as shown below.