fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int i,p[]={1,2,3,4};
  6. for(i=0;i<4;i++)
  7. {
  8. cout<<*p;
  9. p++;
  10. }
  11. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:9:4: error: lvalue required as increment operand
   p++;
    ^
stdout
Standard output is empty