actual and formal parameters

#include <stdio.h>

int add(int x,int y) // function // in this x & y are formal parameters
{
    return x+y;
}

int main()
{
    int r, a=2,b=3;
    r=add(a,b);// calling the function //in this a & b are actual parameters
    printf("%d",r);
    return 0;
}

Comments

Popular posts from this blog

Tokens in C

Steps taken by a compiler to execute a C program

Variables and Data Types in C