Swapping two numbers using function

The below program shows how to swap two numbers using functions. swapping means interchanging of two numbers, that is if we take two numbers like 4 and 5, after swapping the numbers become 5 and 4. Here in the program swap function is used with two parameters. The function prototype declared above the main function, and it is called in the main function. The program asks two numbers from the user and by using function, the numbers will be swapped and numbers will be displayed in the output.

#include<stdio.h>
#include<conio.h>
int swap(int,int);
        void main()
        {
            int m,n;
            clrscr();
            printf("\n Enter two numbers to swap:");
            scanf("%d %d",&m,&n);
            swap(m,n);
            getch();
        }
        int swap(int a,int b)
        {
            int t;
            t=a;
            a=b;
            b=t;
            printf("\n Swapped numbers are: %d %d",a,b);
            return(1);
        }