[ create a new paste ] login | about

Link: http://codepad.org/FqIcl9T7    [ raw code | output | fork ]

C, pasted on Nov 18:
1
2
3
4
5
6
7
8
9
10
#include <stdio.h>

int main(void)
{
int i;
float a[7] = {2.10, 3.21, 5.43, 6.54, 7.65, 8.76, 9.87};
float *a_p = &a[1];
for(i = 0;i < 3;printf("%.2f ",*a_p) , a_p += 2 , i++);
return 0;
}


Output:
1
3.21 6.54 8.76 


Create a new paste based on this one


Comments: