Header Ads Widget

Responsive Advertisement

Highest Between Two Number Using Pointer


 

#include<stdio.h>
int main()
{ int a,b;
printf("Enter two number : ");
scanf("%d%d",&a,&b);
int *high = &a;
int *low = &b;

if(*low>*high){
printf("The High is = %d\n",*low);   // *low Means Value of b.
}
else{
printf("The High is = %d\n",*high);  // *high Means Value of a.
}
return 0;
}


Post a Comment

0 Comments