The register keyword is deprecated and largely ignored .
But this small part of his msdn documentation made me think.
The compiler does not accept user requests for register variables; [...] However, any other semantics associated with the register keyword are satisfied .
What is this semantics?
For example, in C you cannot take the address of an object declared using the register qualifier.
register
void foo(void) { register int a = 42; &a; // constraint violation }
Another example: you cannot use register in a file scope declaration:
register int b = 42; // constraint violation int main(void) { }
Source: https://habr.com/ru/post/989624/More articles:Performing code analysis in IntelliJ IDEA - javaGoogle Cloud SQL processor monitoring - google-cloud-platformError while working with Blackberry 10 - c ++Differences between enumerate (fileinput.input (file)) and enumeration (file) - pythonSpring data and lock - javaJavascript gets internal HTML text for span by class name - javascriptHow to reduce column width and table size in Kable (type = rmarkdown) - rCoordinatorLayout does not hide the toolbar when scrolling, despite the completion of all the necessary parameters - tabsDrawing shapes as values ββon ZingChart - javascriptangular - ui-select - how to associate an object property with ng-model - javascriptAll Articles