#19_(3)Functions in C

 # include <stdio.h>

//With argument and with return value

int mohit(int a, int b);

int main()
{
    int c;
    c=mohit(2, 3);      //With argument
    printf("%d", c);   
    return 0;
}

int mohit(int a, int b)
{
    return a+b;   //With return value
}

Comments

Popular posts from this blog

#19_(2)Functions in C

Ch7_32_MethodOverloading

#72_Function Pointers in C