Structure and Union
In this example, We will learn a simple program for pointer comparision. Before that, You must have knowledge of the following topics.
Learn C programming directly from mobile. This app includes tutorials with topics, examples and live compiler.
ptrA = (int *)1;
ptrB = (int *)2;
if(ptrA > ptrB)
printf("PtrB is greater than ptrA");
printf("PtrB is less than ptrA");
The output of above program is
PtrB is less than ptrA
Get the latest tutorials, examples and projects updates.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
Disable Ad Block
Want Same System