visual studio - psuedo global variable in c -
The question of an interview was asked, but, I am not clear from the explanation, which I found on various websites. Because, when I'm trying to execute this code, it shows the People say * Note: - This error is showing unchecked Does it often? This is absolutely nonsense probably for some compiler-specific marking "ax" register, which is used on x86 for return value. However, there is no reason to believe that the value in the register should not be covered between assignments and function returns. This program is implementing undefined behavior. If someone is giving you a job then you hope you know such kind of illegal practice. Fast. They are not capable. _AX undeclared error.
main () {int i; I = ABC (); Printf ("% d", i); } ABC () {_AX = 1000; }
_AX is pseudo-global variable , this is the reason why this product shows 1000
_AX , but when I declare variable, it shows some garbage value *
Comments
Post a Comment