CP programs
24. Implement call by reference mechanism by swapping two
integers using pointers.
CODE:
#include<stdio.h>
void swap(int *x,int *y){
int t;
t=*x;
*x=*y;
*y=t;
printf("\nValues After Swap: a = %d, b= %d",*x,*y);
}
void main()
{
int a,b;
printf("\nEnte...
maneeshreddy.hashnode.dev6 min read