#include <iostream> using namespace std; int main() { int arr[10] = {23 , 122 , 41, 67}; cout << arr << endl; cout << &arr[0] << endl; cout << *arr << endl; cout << *(arr) << endl; cout << *(arr+1) << endl; cout << *(arr) + 4 << endl; cout << arr[2] << endl; cout << *(arr+2) << endl; return 0; }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter