Having a really small problem. This is a pointer program I tried to make for practice, but I'm getting a error in Visual C++.
#include "stdafx.h"
#include "iostream"
#include "string"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
char *p = "School";
char c;
c = ++*p++;
cout << c << ", " << p << endl;
cout << p << ", " << ++*p-- << ", " << ++p*++; //Error C2059: syntax error : ';'
return 0;
}
Maybe it's a very silly problem, but I can't seem to put my finger on it.