I have this code in C:
int main(){ char a[10]; _asm{ mov DWORD PTR[a],eax;}
This works well, but why do I actually need the
DWORD PTR
When the DWORD size is already stated by using eax? IAnd for destination, I dont need any size whe I have pointer, right? Thanks.
It is because your code is wrong. The a variable is an array, not a pointer. Declare it char* and you don’t need the override. The code is nonsense of course.