// Write a program in C programming to swap value using Pointer.
#include <stdio.h>
int main()
{
int a = 10, b = 20;
int *p, *q, *temp;
p = &a;
q = &b;

temp = q;
q = p;
p = temp;
printf("P value is %d, q value is %d", *p, *q);
}

// Write a program in c to find factorial of an number using point
#include <stdio.h>
int main()
{
int n, *p, product = 1, *q, i;
q = &product;
printf("Enter a number");
scanf("%d", &n);
*p = n;
for (i = 1; i <= *p; i++)
{
*q = *q * i;
}

printf("The factorial of %d is %d", *p, *q);
}