Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- #include <cstdio>
- int main() {
- int a[4];
- a[0] = 3;
- a[1] = 2;
- a[2] = 1;
- a[3] = 0;
- printf("%d", a[1 + 2[a]]);
- return 0;
- }
- **/
- /**
- #include <iostream>
- using namespace std;
- int main()
- {
- int i, &j = i;
- [=]
- {
- cout << is_same<decltype ((j)), int >::value
- << is_same<decltype (((j))), int & >::value
- << is_same<decltype ((((j)))), int const& >::value
- << is_same<decltype (((((j))))), int && >::value
- << is_same<decltype((((((j)))))), int const&& >::value;
- }();
- }
- **/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement