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 _AX undeclared error.

  main () {int i; I = ABC (); Printf ("% d", i); } ABC () {_AX = 1000; }   

People say _AX is pseudo-global variable , this is the reason why this product shows 1000

* Note: - This error is showing unchecked _AX , but when I declare variable, it shows some garbage value *

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.

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -