#include<stdio.h>
#include<stdlib.h>
int main()
{
int a,b,*a1=&a,*b1=&b;
printf("\nPointer:Finding the maximum number :\n");
printf("=========================================");
printf("Enter first Number:");
scanf("%d",a1);
printf("Enter Second Number :");
scanf("%d",b1);
if(*a1>*b1)
{
printf("\n %d is the maximum \n",*a1);
}
else
{
printf("\n %d is the maximum \n",*b1);
}
}
To embed this program on your website, copy the following code and paste it into your website's HTML: