Write a c program to compare two pointer numbers

Write a c program to compare two pointer numbers. A pointer is a variable whose value is the address of another variable, the memory location’s direct address. The act of comparing two or more items by deciding the appropriate, comparable characteristics of each item is referred to as comparison.

#include<stdio.h>
int main()
{
int *ptrA;
float *ptrB;
ptrA = (int *)1000;
ptrB = (float *)2000;
if(ptrB > ptrA)
printf("Pointer B is greater than pointer A");
return(0);
}

Pointer  B is greater than Pointer A