Some more pointer arithmetic with Arrays
Program 1:
#include <stdio.h>
int main(void)
{
int a[] = {10, 20, 30, 40, 50};
int i, *p;
p=a+4;
for(i=4;i>=0;i--)
printf("%d\n", *(p-i));
return 0;
}
Output:
Changing the direction of the loop:
Program 2:
#include <stdio.h>
int main(void)...
kaustubhk.hashnode.dev1 min read