#include <bits/stdc++.h>using namespace std; int main() { int arr[]={10,20,30};int *ptr=arr;for(int i=0;i<3;i++)cout<<*ptr++; return 0;}
Standard input is empty
102030
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!