Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
Other semantics associated with the register keyword

The register keyword is deprecated and mostly ignored.

But this little part of its documentation on the msdn made me wonder.

The compiler does not accept user requests for register variables; [...] However, all other semantics associated with the register keyword are honored.

What are those other semantics?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

For example in C you cannot take the address of an object declared with register specifier.

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)
{
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!