Re: String to Octal



fuch6921@xxxxxxxxxxxxx wrote:

I want to read in an Octal number argument and have it stored as an
octal number.

What do you mean by 'storing it as an octal number' ?

The representation of a number dose not matter for C. Typically it is
stored as binary number. If you have an underlying machine which
can store 8 symbols for each "bit" only then can you store it as octal
number.

I have seen lot of beginners having this confusion with octal and
hexadecimal representations. It is better to be cleared off this
confusion in the beginning it self.

.



Relevant Pages

  • Re: HTML horizontal rule element
    ... >>presentation is supposed to be a matter for the stylesheet. ... have no useful representation on a speaking browser. ... but only if we agree that the horizontal rule itself ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: Rhombics
    ... But the GRAPHICS are only plotting what NEC calculated, ... The point of the matter is that the graphical ... representation is one for wide application and the ... elaborate modeling. ...
    (rec.radio.amateur.antenna)
  • Re: AND Operator and Currency data type
    ... That's a matter of opinion. ... correct almost all of the time, BUT the currency data type simply uses ... the binary representation of the number 2 looks ...
    (microsoft.public.vb.general.discussion)
  • Re: size_t
    ... which can store the representation of a pointer. ... // will trigger a compile error if the test is false ...
    (comp.lang.cpp)
  • Re: Float comparison
    ... If a double object x contains the value 42.0, it doesn't matter ... Look at the hex representation of 1.0. ... Yes, because there are an infinite number of reals in the 'range', ... assume we are talking about the float type. ...
    (comp.lang.c)