What exactly is linkage in C?
https://lemmy.ml/post/20992137
=> More informations about this toot | More toots from velox_vulnus@lemmy.ml
From what I recall, register is ignored by modern compilers (it used to mean that you wanted the variable stored inside CPU registers, but nowadays compilers are smarter and know when to do that). Meanwhile, static is basically a global variable that has the scope of a local variable, while extern is a global variable that you want to explicitly tell the compiler it’s defined in a different compilation unit.
=> More informations about this toot | More toots from pancake@lemmygrad.ml
Any reason why it still exists in C, but was deprecated in C++11 and completely removed in C++17?
=> More informations about this toot | More toots from velox_vulnus@lemmy.ml This content has been proxied by September (3851b).Proxy Information
text/gemini