Return With Argument Function in C

Here this function is taking any input argument, and also returns value.

        Syntax :
           Return_Type Function_Name ( Parameters ) // Function Definition
                 // body of Statement ;

        Example :
           int add ( int x , int y )
                 // body of Statement ;

Source Code

//Return With Argument Function in C
int add(int,int);
int main()
    int a,b;
    printf("\nEnter The Value of A & B : ");
    printf("\nTotal : %d",a);
    return 0;
int add(int x,int y)
    return x+y;
To download raw file Click Here


Enter The Value of A & B : 2

Total : 11

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C