[ create a new paste ] login | about

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

C++, pasted on Mar 14:
1
2
3
4
5
6
7
8
9
10
11
12
#include <cstdio>

int main(void)
  {
  int a[] = {1,2,3,4,5};
  const int n = sizeof a / sizeof (int);

  for(size_t q = n-1; q != ~size_t(); --q)
    printf("%d ", a[q]);

  return 0;
  }


Output:
1
5 4 3 2 1 


Create a new paste based on this one


Comments: