I have the following code.
#include<iostream>
using namespace std;
int main() {
int result=0;
_asm {
mov eax,2
mov eax,result;
}
cout<<result<<endl;
return 0;
}
I know assembler well but why doesn't the program output 2 to the screen?