how this convertion done from unsigned char* to unsigned short?
#include<iostream>
using namespace std;
int main()
{
unsigned short x;
x= (unsigned char*)&x - (unsigned char*) 0x8888;
cout<<us<<endl;
return 0;
}
when I am trying to add like this
x= (unsigned char*)&x + (unsigned char*) 0x8888;
Then error comes up. it says "invalid operands of types 'unsigned char*' and 'unsigned char*' to binary 'operator+' " please help me to understand this syntax.