Re: What's the differences between REGISTER and AUTO?



JOYCE wrote, On 04/11/08 11:58:
Look the subject,that's my problem!

It is better to put the entire question in the body of the post.

I hope someone can help me, thanks

What does your text book say? What is the difference between a car and a
road? Anyway, register is a hint to the compiler (which normally is not
needed and has not been needed for many years) which affects what you
can do with a variable, auto has not been needed as part of the language
for even longer since where it is legal the variable would have
automatic storage duration without using it.

Another hint is that many processors have registers but I'm not aware of
any that have autos.
--
Flash Gordon
If spamming me sent it to smap@xxxxxxxxxxxxxxxxx
If emailing me use my reply-to address
See the comp.lang.c Wiki hosted by me at http://clc-wiki.net/
.



Relevant Pages

  • Re: register variable
    ... | I have a few doubts regarding the register variable. ... This, then, is a flaw in the GCC compiler. ... | 'auto' variable by the compiler). ... "register" is a hint to the compiler, and the compiler is not obliged to take ...
    (comp.lang.c)
  • Re: Register variables
    ... adhered to when register variables are passed between functions? ... many compilers ignore the hint. ... Neither are `auto' ...
    (comp.lang.c)
  • Re: Whats the differences between REGISTER and AUTO?
    ... What's the differences between REGISTER and AUTO? ... int fred (void) ... register indicates to the C compiler that the indicated variable ...
    (comp.lang.c)
  • Re: Why not auto?
    ... >>> be extern or auto makes even less sense than declaring it register. ...
    (comp.lang.c)
  • Re: Modifying/working on guns
    ... # If you make something full auto without the tax etc it's a felony.. ... The problem is you haven't been able to register new full autos since 1986 ...
    (rec.guns)