Thursday, November 20, 2025

Function

 

Function

Function: A function in C is a block of code that performs a specific task and can be used many times in a program. It helps to divide a big program into small manageable parts.


Subroutine: A subroutine is also a block of code that performs a specific task, but it does not return any value. In C, a subroutine is written using a void function.


Uses of Function and Subroutine

Purpose

Explanation

Code Reusability

A function can be written once and used many times.

Modularity

Divides a large program into small sections (modules).

Easy Debugging

Errors can be easily found in small functions.

Improved Readability

Makes program easier to read and understand.

Teamwork

Different functions can be made by different programmers.


Drawbacks of Functions and Subroutines

Drawback

Explanation

Extra Memory Use

Function calls require memory for parameters and return values.

Execution Overhead

Jumping in and out of functions can make the program slightly slower.

Complexity

Too many small functions can make code hard to track.


Declaration and Initialization

(a) Function Declaration

Also called Function Prototype — it tells the compiler about the function name, return type, and parameters.

Syntax:

return_type function_name(parameter_list);

๐Ÿ“˜ Example:

int add(int, int);

void greet();


Function Definition

Defines what the function will do.

Syntax:

return_type function_name(parameter_list) {

    // statements

}

Example:

int add(int a, int b) {

    return a + b;

}


Function Call

Used to execute a function.

๐Ÿ“˜ Syntax:

function_name(arguments);

Example:

sum = add(5, 10);


  Types of Functions and Subroutines

1. Library Function

Definition:
Library functions are predefined functions that are already written and stored in C header files (like
stdio.h, math.h, string.h, etc.). You can use them directly in your program without writing their code.

 Examples:

printf();    // for output

scanf();     // for input

sqrt();      // for square root

strlen();    // for length of a string

Note:
To use a library function, you must include the proper header file at the beginning of your program.
Example:

#include <math.h>


 2. User-Defined Function

Definition:
A user-defined function is a function created by the programmer to perform a specific task. It helps to make the program modular, reusable, and easy to understand.

 Example:

int add(int a, int b) {

    return a + b;

}

 Note:
User-defined functions are written by the user using the syntax:

return_type function_name(parameter_list) {

    // statements

}

 

 

Types of Functions in C (Based on Arguments and Return Value)

 1. No Arguments and No Return Value

Definition:
This type of function does not take any input (arguments) and does not return any value.
It simply performs a task like displaying a message.

Example:

#include <stdio.h>
 
void greet() {
    printf("Hello Students!\n");
}
 
int main() {
    greet();   // function call
    return 0;
}

Use:
When you only want to perform an action, not calculations.


2. Arguments but No Return Value

Definition:
This type of function takes input values (arguments) but does not return any result to the calling function.

Example:

#include <stdio.h>
 
void displaySum(int a, int b) {
    printf("Sum = %d\n", a + b);
}
 
int main() {
    displaySum(10, 20);  // function call with arguments
    return 0;
}

Use:
When you need to process or display results directly inside the function.


3. No Arguments but Returns a Value

Definition:
This function does not take any input, but it returns a value to the main program.

 Example:

#include <stdio.h>
 
int getNumber() {
    return 100;
}
 
int main() {
    int num = getNumber();  // function call
    printf("Number = %d", num);
    return 0;
}

Use:
When the function itself generates or calculates a value internally.


4. With Arguments and Return Value

Definition:
This type of function takes input values (arguments) and also returns a result to the calling function.
It is the most commonly used type of function.

Example:

#include <stdio.h>
 
int add(int a, int b) {
    return a + b;
}
 
int main() {
    int sum = add(10, 20);
    printf("Sum = %d", sum);
    return 0;
}

Use:
When input is needed and output is expected.

 

 

 

                           Recursion in Function


Recursion is a process in which a function calls itself directly or indirectly to solve a problem.

In simple words,
A recursive function is a function that calls itself.


Syntax of Recursive Function:

return_type function_name(parameters) {
    if (condition)
        return some_value;   // Base case
    else
        return function_name(modified_parameter);  // Recursive call
}

Important Terms:

1.     Recursive Call:
When a function calls itself, it is called a recursive call.

2.     Base Case (Termination Condition):
A condition that stops the function from calling itself again — to prevent infinite recursion.


Example 1: Factorial Using Recursion

Program:

#include <stdio.h>
 
int factorial(int n) {
    if (n == 0 || n == 1)
        return 1;   // Base case
    else
        return n * factorial(n - 1);  // Recursive call
}
 
int main() {
    int num = 5;
    printf("Factorial of %d = %d", num, factorial(num));
    return 0;
}

 Output:

Factorial of 5 = 120

Advantages and Disadvantages of Recursion

Advantages of Recursion

No.

Advantage

Explanation

1.

Simplifies Complex Problems

Problems like factorial, Fibonacci series, and tree traversal are easier to solve using recursion.

2.

Reduces Code Length

Recursive programs are shorter and easier to write compared to long iterative loops.

3.

Better Logical Clarity

The logic of repetitive or mathematical problems becomes easier to understand.

4.

Useful for Repetitive Problems

Recursion automatically handles repetition through self-calls instead of using loops.


๐Ÿ”น Disadvantages of Recursion

No.

Disadvantage

Explanation

1.

High Memory Usage

Each recursive call uses extra stack memory, which can lead to memory overflow.

2.

Slower Execution

Calling a function repeatedly takes more time than using loops.

3.

Difficult to Debug

Tracing errors in recursive calls can be complex.

4.

Risk of Infinite Recursion

If the base condition is missing or wrong, the program never stops and crashes.

 

Function in hindi

 

                         เคซंเค•्เคถเคจ (Function) 



Function (เคซंเค•्เคถเคจ):

C เคญाเคทा เคฎें เคซंเค•्เคถเคจ เคเค• เค•ोเคก เค•ा เคฌ्เคฒॉเค• เคนोเคคा เคนै เคœो เค•िเคธी เคตिเคถेเคท เค•ाเคฐ्เคฏ (specific task) เค•ो เค•เคฐเคคा เคนै เค”เคฐ เคœिเคธे เคช्เคฐोเค—्เคฐाเคฎ เคฎें เค•เคˆ เคฌाเคฐ เค‰เคชเคฏोเค— เค•िเคฏा เคœा เคธเค•เคคा เคนै।
เคฏเคน เคฌเคก़े เคช्เคฐोเค—्เคฐाเคฎ เค•ो เค›ोเคŸे-เค›ोเคŸे เคนिเคธ्เคธों เคฎें เคฌाँเคŸเคจे เคฎें เคฎเคฆเคฆ เค•เคฐเคคा เคนै เคคाเค•ि เค‰เคธे เคธเคฎเคเคจा เค”เคฐ เคธंเคญाเคฒเคจा เค†เคธाเคจ เคนो।


Subroutine (เคธเคฌเคฐूเคŸीเคจ):

เคธเคฌเคฐूเคŸीเคจ เคญी เค•ोเคก เค•ा เคเค• เคฌ्เคฒॉเค• เคนोเคคा เคนै เคœो เค•ोเคˆ เคตिเคถेเคท เค•ाเคฐ्เคฏ เค•เคฐเคคा เคนै,
เคฒेเค•िเคจ เคฏเคน เค•ोเคˆ เคฎाเคจ (value) เคตाเคชเคธ เคจเคนीं เค•เคฐเคคा।
C เคญाเคทा เคฎें เคธเคฌเคฐूเคŸीเคจ เค•ो void function เค•े เคฐूเคช เคฎें เคฒिเค–ा เคœाเคคा เคนै।


เคซंเค•्เคถเคจ เค”เคฐ เคธเคฌเคฐूเคŸीเคจ เค•े เค‰เคชเคฏोเค— (Uses)

เค‰เคฆ्เคฆेเคถ्เคฏ (Purpose)เคต्เคฏाเค–्เคฏा (Explanation)
เค•ोเคก เคชुเคจ: เค‰เคชเคฏोเค— (Code Reusability)เคเค• เคซंเค•्เคถเคจ เค•ो เคเค• เคฌाเคฐ เคฒिเค–เค•เคฐ เค•เคˆ เคฌाเคฐ เค‰เคชเคฏोเค— เค•िเคฏा เคœा เคธเค•เคคा เคนै।
เคฎॉเคก्เคฏूเคฒเคฐिเคŸी (Modularity)เคฌเคก़े เคช्เคฐोเค—्เคฐाเคฎ เค•ो เค›ोเคŸे-เค›ोเคŸे เคนिเคธ्เคธों (modules) เคฎें เคฌाँเคŸ เคฆेเคคा เคนै।
เค†เคธाเคจ เคกीเคฌเค—िंเค— (Easy Debugging)เค›ोเคŸे-เค›ोเคŸे เคซंเค•्เคถเคจों เคฎें เคค्เคฐुเคŸिเคฏाँ (errors) เค†เคธाเคจी เคธे เค–ोเคœी เคœा เคธเค•เคคी เคนैं।
เคฌेเคนเคคเคฐ เคชเค เคจीเคฏเคคा (Improved Readability)เคช्เคฐोเค—्เคฐाเคฎ เค•ो เคชเคข़เคจा เค”เคฐ เคธเคฎเคเคจा เค†เคธाเคจ เคฌเคจाเคคा เคนै।
เคŸीเคฎ เคตเคฐ्เค• (Teamwork)เค…เคฒเค—-เค…เคฒเค— เคช्เคฐोเค—्เคฐाเคฎเคฐ เค…เคฒเค—-เค…เคฒเค— เคซंเค•्เคถเคจ เคฌเคจा เคธเค•เคคे เคนैं।

เคซंเค•्เคถเคจ เค”เคฐ เคธเคฌเคฐूเคŸीเคจ เค•ी เค•เคฎिเคฏाँ (Drawbacks)

เค•เคฎी (Drawback)เคต्เคฏाเค–्เคฏा (Explanation)
เค…เคงिเค• เคฎेเคฎोเคฐी เค•ा เค‰เคชเคฏोเค— (Extra Memory Use)เคซंเค•्เคถเคจ เค•ॉเคฒ เค•े เคฒिเค เคชैเคฐाเคฎीเคŸเคฐ เค”เคฐ เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เค•ी เคฎेเคฎोเคฐी เคฒเค—เคคी เคนै।
เคงीเคฎा เคจिเคท्เคชाเคฆเคจ (Execution Overhead)เคซंเค•्เคถเคจ เค•ॉเคฒ्เคธ เค•े เค•ाเคฐเคฃ เคช्เคฐोเค—्เคฐाเคฎ เคฅोเคก़ा เคงीเคฎा เคนो เคธเค•เคคा เคนै।
เคœเคŸिเคฒเคคा (Complexity)เคฌเคนुเคค เค…เคงिเค• เค›ोเคŸे-เค›ोเคŸे เคซंเค•्เคถเคจ เค•ो เคธंเคญाเคฒเคจा เคฎुเคถ्เค•िเคฒ เคนो เคธเค•เคคा เคนै।

เค˜ोเคทเคฃा เค”เคฐ เคช्เคฐाเคฐंเคญिเค•เค•เคฐเคฃ (Declaration and Initialization)

(a) Function Declaration (เคซंเค•्เคถเคจ เค˜ोเคทเคฃा)

เค‡เคธे Function Prototype เคญी เค•เคนा เคœाเคคा เคนै।
เคฏเคน เค•ंเคชाเค‡เคฒเคฐ เค•ो เคฌเคคाเคคा เคนै เค•ि เคซंเค•्เคถเคจ เค•ा เคจाเคฎ, เคฐिเคŸเคฐ्เคจ เคŸाเค‡เคช เค”เคฐ เคชैเคฐाเคฎीเคŸเคฐ เค•्เคฏा เคนोंเค—े।

เคธिंเคŸैเค•्เคธ (Syntax):

return_type function_name(parameter_list);

เค‰เคฆाเคนเคฐเคฃ:

int add(int, int); void greet();

Function Definition (เคซंเค•्เคถเคจ เคชเคฐिเคญाเคทा)

เคฏเคน เคฌเคคाเคคा เคนै เค•ि เคซंเค•्เคถเคจ เคตाเคธ्เคคเคต เคฎें เค•्เคฏा เค•ाเคฐ्เคฏ เค•เคฐेเค—ा।

เคธिंเคŸैเค•्เคธ:

return_type function_name(parameter_list) { // statements }

เค‰เคฆाเคนเคฐเคฃ:

int add(int a, int b) { return a + b; }

Function Call (เคซंเค•्เคถเคจ เค•ॉเคฒ)

เคซंเค•्เคถเคจ เค•ो เคšเคฒाเคจे เค•े เคฒिเค เค‰เคชเคฏोเค— เค•िเคฏा เคœाเคคा เคนै।

เคธिंเคŸैเค•्เคธ:

function_name(arguments);

เค‰เคฆाเคนเคฐเคฃ:

sum = add(5, 10);

เคซंเค•्เคถเคจों เค•े เคช्เคฐเค•ाเคฐ (Types of Functions)

1. เคฒाเค‡เคฌ्เคฐेเคฐी เคซंเค•्เคถเคจ (Library Function)

เคชเคฐिเคญाเคทा:
เคฒाเค‡เคฌ्เคฐेเคฐी เคซंเค•्เคถเคจ เคชเคนเคฒे เคธे เคฌเคจे เคนोเคคे เคนैं เค”เคฐ C เค•ी เคนेเคกเคฐ เคซाเค‡เคฒों (เคœैเคธे stdio.h, math.h, string.h) เคฎें เคฎौเคœूเคฆ เคฐเคนเคคे เคนैं।
เค‡เคจ्เคนें เคธीเคงे เคช्เคฐोเค—्เคฐाเคฎ เคฎें เค‰เคชเคฏोเค— เค•िเคฏा เคœा เคธเค•เคคा เคนै।

เค‰เคฆाเคนเคฐเคฃ:

printf(); // เค†เค‰เคŸเคชुเคŸ เค•े เคฒिเค scanf(); // เค‡เคจเคชुเคŸ เค•े เคฒिเค sqrt(); // เคตเคฐ्เค—เคฎूเคฒ เค•े เคฒिเค strlen(); // เคธ्เคŸ्เคฐिंเค— เค•ी เคฒंเคฌाเคˆ เค•े เคฒिเค

เคจोเคŸ:
เคฒाเค‡เคฌ्เคฐेเคฐी เคซंเค•्เคถเคจ เค•ा เค‰เคชเคฏोเค— เค•เคฐเคจे เคธे เคชเคนเคฒे เค‰เคธเค•ी เคนेเคกเคฐ เคซाเค‡เคฒ เคถाเคฎिเคฒ เค•เคฐเคจी เคนोเคคी เคนै।
เค‰เคฆाเคนเคฐเคฃ:

#include <math.h>

2. เคฏूเคœ़เคฐ-เคกिเคซाเค‡ंเคก เคซंเค•्เคถเคจ (User-Defined Function)

เคชเคฐिเคญाเคทा:
เคเคธे เคซंเค•्เคถเคจ เคœो เคช्เคฐोเค—्เคฐाเคฎเคฐ เคธ्เคตเคฏं เค•िเคธी เคตिเคถेเคท เค•ाเคฐ्เคฏ เค•े เคฒिเค เคฌเคจाเคคा เคนै।
เคฏเคน เคช्เคฐोเค—्เคฐाเคฎ เค•ो เคฎॉเคก्เคฏूเคฒเคฐ, เคชुเคจ: เคช्เคฐเคฏोเค— เคฏोเค—्เคฏ เค”เคฐ เคธเคฎเคเคจे เคฎें เค†เคธाเคจ เคฌเคจाเคคा เคนै।

เค‰เคฆाเคนเคฐเคฃ:

int add(int a, int b) { return a + b; }

เคธिंเคŸैเค•्เคธ:

return_type function_name(parameter_list) { // statements }

C เคฎें เคซंเค•्เคถเคจ เค•े เคช्เคฐเค•ाเคฐ (เค†เคฐ्เค—्เคฏुเคฎेंเคŸ เค”เคฐ เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เค•े เค†เคงाเคฐ เคชเคฐ)

1. เคฌिเคจा เค†เคฐ्เค—्เคฏुเคฎेंเคŸ เค”เคฐ เคฌिเคจा เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เค•े

เคชเคฐिเคญाเคทा: เคฏเคน เคซंเค•्เคถเคจ เค•ोเคˆ เค‡เคจเคชुเคŸ เคจเคนीं เคฒेเคคा เค”เคฐ เค•ोเคˆ เค†เค‰เคŸเคชुเคŸ เคจเคนीं เคฒौเคŸाเคคा।

เค‰เคฆाเคนเคฐเคฃ:

#include <stdio.h> void greet() { printf("Hello Students!\n"); } int main() { greet(); return 0; }

เค‰เคชเคฏोเค—: เค•ेเคตเคฒ เค•ोเคˆ เค•ाเคฐ्เคฏ เค•เคฐเคตाเคจा เคนो, เคœैเคธे เคธंเคฆेเคถ เคฆिเค–ाเคจा।


2. เค†เคฐ्เค—्เคฏुเคฎेंเคŸ เค•े เคธाเคฅ เคฒेเค•िเคจ เคฌिเคจा เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เค•े

เคชเคฐिเคญाเคทा: เคฏเคน เคซंเค•्เคถเคจ เค‡เคจเคชुเคŸ เคคो เคฒेเคคा เคนै, เคฒेเค•िเคจ เค•ोเคˆ เคฎाเคจ เคตाเคชเคธ เคจเคนीं เค•เคฐเคคा।

เค‰เคฆाเคนเคฐเคฃ:

#include <stdio.h> void displaySum(int a, int b) { printf("Sum = %d\n", a + b); } int main() { displaySum(10, 20); return 0; }

เค‰เคชเคฏोเค—: เคœเคฌ เค†เค‰เคŸเคชुเคŸ เค•ो เคธीเคงे เคซंเค•्เคถเคจ เค•े เค…ंเคฆเคฐ เคฆिเค–ाเคจा เคนो।


3. เคฌिเคจा เค†เคฐ्เค—्เคฏुเคฎेंเคŸ เคฒेเค•िเคจ เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เค•े เคธाเคฅ

เคชเคฐिเคญाเคทा: เคฏเคน เค•ोเคˆ เค‡เคจเคชुเคŸ เคจเคนीं เคฒेเคคा, เคฒेเค•िเคจ เค•ोเคˆ เคฎाเคจ เคตाเคชเคธ เค•เคฐเคคा เคนै।

เค‰เคฆाเคนเคฐเคฃ:

#include <stdio.h> int getNumber() { return 100; } int main() { int num = getNumber(); printf("Number = %d", num); return 0; }

เค‰เคชเคฏोเค—: เคœเคฌ เคซंเค•्เคถเคจ เค–ुเคฆ เค•ोเคˆ เคฎाเคจ เค‰เคค्เคชเคจ्เคจ เค•เคฐเคคा เคนै।


4. เค†เคฐ्เค—्เคฏुเคฎेंเคŸ เค”เคฐ เคฐिเคŸเคฐ्เคจ เคตैเคฒ्เคฏू เคฆोเคจों เค•े เคธाเคฅ

เคชเคฐिเคญाเคทा: เคฏเคน เคซंเค•्เคถเคจ เค‡เคจเคชुเคŸ เคญी เคฒेเคคा เคนै เค”เคฐ เค†เค‰เคŸเคชुเคŸ เคญी เคฒौเคŸाเคคा เคนै।
เคฏเคน เคธเคฌเคธे เค…เคงिเค• เค‰เคชเคฏोเค— เค•िเคฏा เคœाเคจे เคตाเคฒा เคช्เคฐเค•ाเคฐ เคนै।

เค‰เคฆाเคนเคฐเคฃ:

#include <stdio.h> int add(int a, int b) { return a + b; } int main() { int sum = add(10, 20); printf("Sum = %d", sum); return 0; }

เค‰เคชเคฏोเค—: เคœเคฌ เค‡เคจเคชुเคŸ เค”เคฐ เค†เค‰เคŸเคชुเคŸ เคฆोเคจों เค•ी เค†เคตเคถ्เคฏเค•เคคा เคนो।


Recursion in Function

เคชเคฐिเคญाเคทा:
Recursion เคตเคน เคช्เคฐเค•्เคฐिเคฏा เคนै เคœिเคธเคฎें เค•ोเคˆ เคซंเค•्เคถเคจ เคธ्เคตเคฏं เค•ो เคนी เคฌाเคฐ-เคฌाเคฐ เค•ॉเคฒ เค•เคฐเคคा เคนै।
เคธเคฐเคฒ เคถเคฌ्เคฆों เคฎें, Recursive Function เคตเคน เคซंเค•्เคถเคจ เคนोเคคा เคนै เคœो เค–ुเคฆ เค•ो เค•ॉเคฒ เค•เคฐเคคा เคนै।

เคธिंเคŸैเค•्เคธ:

return_type function_name(parameters) { if (condition) return some_value; // Base case else return function_name(modified_parameter); // Recursive call }

เคฎเคนเคค्เคตเคชूเคฐ्เคฃ เคถเคฌ्เคฆाเคตเคฒी:

  1. Recursive Call: เคœเคฌ เค•ोเคˆ เคซंเค•्เคถเคจ เค–ुเคฆ เค•ो เค•ॉเคฒ เค•เคฐเคคा เคนै।

  2. Base Case: เคตเคน เคธ्เคฅिเคคि เคœो เคซंเค•्เคถเคจ เค•ो เค–ुเคฆ เค•ो เคฆोเคฌाเคฐा เค•ॉเคฒ เค•เคฐเคจे เคธे เคฐोเค•เคคी เคนै (เค…เคจंเคค เคฒूเคช เคธे เคฌเคšเคจे เค•े เคฒिเค)।


เค‰เคฆाเคนเคฐเคฃ: เคซैเค•्เคŸोเคฐिเคฏเคฒ เคจिเค•ाเคฒเคจा (Factorial using Recursion)

#include <stdio.h> int factorial(int n) { if (n == 0 || n == 1) return 1; // Base case else return n * factorial(n - 1); // Recursive call } int main() { int num = 5; printf("Factorial of %d = %d", num, factorial(num)); return 0; }

เค†เค‰เคŸเคชुเคŸ:

Factorial of 5 = 120

Recursion เค•े เคฒाเคญ เค”เคฐ เคนाเคจिเคฏाँ (Advantages and Disadvantages)

เคฒाเคญ (Advantages)

เค•्เคฐเคฎเคฒाเคญเคต्เคฏाเค–्เคฏा
1.เคœเคŸिเคฒ เคธเคฎเคธ्เคฏाเค“ं เค•ो เคธเคฐเคฒ เคฌเคจाเคคा เคนैเคœैเคธे Factorial, Fibonacci, Tree traversal เค•ो เค†เคธाเคจी เคธे เคนเคฒ เค•िเคฏा เคœा เคธเค•เคคा เคนै।
2.เค•ोเคก เค›ोเคŸा เคนोเคคा เคนैRecursive เค•ोเคก เคฒूเคช เค•ी เคคुเคฒเคจा เคฎें เค›ोเคŸा เคนोเคคा เคนै।
3.เคคเคฐ्เค• เคธ्เคชเคท्เคŸ เคนोเคคा เคนैเคฆोเคนเคฐाเคต เคตाเคฒे เค•ाเคฐ्เคฏों เค•ी เคฒॉเคœिเค• เค•ो เคธเคฎเคเคจा เค†เคธाเคจ เคนोเคคा เคนै।
4.เคชुเคจเคฐाเคตृเคค्เคคि เคฎें เคธเคนाเคฏเค•เคฒूเคช เค•ी เคฌเคœाเคฏ เค–ुเคฆ เค•ो เค•ॉเคฒ เค•เคฐเค•े เคฆोเคนเคฐाเคต เค•เคฐเคคा เคนै।

เคนाเคจिเคฏाँ (Disadvantages)

เค•्เคฐเคฎเคนाเคจिเคต्เคฏाเค–्เคฏा
1.เค…เคงिเค• เคฎेเคฎोเคฐी เค•ा เค‰เคชเคฏोเค—เคนเคฐ เค•ॉเคฒ เคฎें เคจเคˆ เคธ्เคŸैเค• เคฎेเคฎोเคฐी เคฒเค—เคคी เคนै।
2.เคงीเคฎी เค—เคคिเคฌाเคฐ-เคฌाเคฐ เคซंเค•्เคถเคจ เค•ॉเคฒ เคนोเคจे เคธे เคจिเคท्เคชाเคฆเคจ เคงीเคฎा เคนोเคคा เคนै।
3.เคกीเคฌเค— เค•เคฐเคจा เค•เค िเคจRecursive เค•ॉเคฒ्เคธ เคฎें เคค्เคฐुเคŸि เคขूंเคขเคจा เคฎुเคถ्เค•िเคฒ เคนोเคคा เคนै।
4.เค…เคจंเคค เคชुเคจเคฐाเคตृเคค्เคคि เค•ा เค–เคคเคฐाเคฏเคฆि เคฌेเคธ เค•ंเคกीเคถเคจ เค—เคฒเคค เคนो เคคो เคช्เคฐोเค—्เคฐाเคฎ เค•เคญी เคจเคนीं เคฐुเค•เคคा।

Function

  Function Function : A function in C is a block of code that performs a specific task and can be used many times in a program. It help...