C++ - Run-Time Check Failure

  • Thread starter Thread starter Arash_89
  • Start date Start date
A

Arash_89

Guest
Hello,

How can I fix this error?

Thanks

#include<iostream>
using namespace std;

int main()
{
int x = 2;
int* ip = &x;
cout << *ip << endl;

++ip;

*ip = 3;
cout << *ip;

//delete ip;

return 0;
}



1600893.jpg

Continue reading...
 
Back
Top