#include <iostream>
usingnamespace std;
int main ()
{
char character = 'a';
char * pointera;
char * pointerb;
pointera = &character;
pointerb = *pointera;
*(++pointerb);
cout << pointerb;
}
the point of this code is to increase character by 1 (so from a to b in this case).
The underlined line is the line that the system is rejecting at the moment (but there may be other issues). Please can someone explain why it is invalid?