#include<stdio.h>
main()
{
    int a=40,b=60,c;
    //clrscr();
    c=add(&a,&b);
    printf("The Sum is: %d",c);
    getch();
}
add(int *x,int *y)
{
    int z;
    z=*x+*y;
    return(z);
}

 OUTPUT:

The Sum is: 100