#include <iostream> using namespace std; int main() { int i,p[]={1,2,3,4}; for(i=0;i<4;i++) { cout<<*p; p++; } }
Standard input is empty
prog.cpp: In function ‘int main()’: prog.cpp:9:4: error: lvalue required as increment operand p++; ^
Standard output is empty