[ create a new paste ] login | about

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

C++, pasted on Sep 17:
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>

int a[] = {1, 12, 13,2};
int b[] = {2, 12, 23,2};

int main()
{
  int c = 3[b][a];
  cout << c;
  return 0;
}


Output:
1
13


Create a new paste based on this one


Comments: