/*Prince Annan Koomsonannanworld.wordpress.com
I hope this answer your questionTake a close look at it you will understandHey
Guys if i missed something out should let me know!.
*/#include<stdio.h>int main(){ printf("It Works\n"); // Declaring
variables and assigning values to it int a=1; int b=2; // Calling the
swap function and passing parameters swap(&a,&b); // pausing the screen
using windows if linux please use getchar(); //getchar(); // uncmment
this when using other other platform. system("pause"); } //
declaring a pointer int swap(int *x, int *y) { printf("Before Swap
\n"); printf("x = %d ,Y = %d\n\n", *x,*y); // using pointers
int temp=0; temp= *x; *x = *y; *y = temp;
printf("After Swap\n"); printf("x = %d, y = %d\n",*x,*y); }
Prince Annan KoomsonCopy and paste the above codes into a C compiler and
compile it.This works
[Non-text portions of this message have been removed]