No Return With Argument Function in C

When a function has arguments, it receive any data from the calling function but it returns no values.

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

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

Source Code

//No Return With Argument Function in C
//Function Declaration
void add(int,int);
int main()
    int a,b;
    printf("\nEnter The Value of A & B : ")l
    //Function Calling
    add(a,b);  // Actual Parameters
    return 0;
//Function Definition
void add(int x,int y)  //Formal Parameters
    int c;
    printf("\nTotal : %d",c);
To download raw file Click Here


Enter The Value of A & B : 23

Total : 57

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