Code:#include <stdio.h>
int main()
{
int i; int a[10];
for(i = 0; i < 10; i++)
a[i] = i;
/* what I wanna to do the same thing like this */
/* But in little difernet style. That is that I do not declare i. something like */
Code:
for(i = 0; i < 10; i++)
printf("%d = %d\n",a+i, *(a+i));
printf("\n\n");
return 0;
Code:
for(; *a < 10; /* a += sizeof(int) this is what I dont know how to increment adress */)
printf("%d = %d\n",a+i, *(a+i));
printf("\n\n");
}