[ create a new paste ] login | about

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

C, pasted on Jun 2:
1
2
3
4
5
6
7
8
9
#include <stdio.h>
int main() {
  int x[6] = {5, 8, 6, 4, 1, 3};
  int *p = x;
  printf("%d\n", *p * *(p + 2) * *(p + 4));
  printf("%d\n", *(p + 1) * *(p + 3) * *(p + 5));  
  return 0;
}
/* end */


Output:
1
2
30
96


Create a new paste based on this one


Comments: