#include <iostream> using namespace std; int main() { int* a = new int[10]; for(int i = 0; i<10; i++) a[i] = i; int* b = &a[2]; cout << b[3]; }
Output: 5
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)