Hi Gustavo,

you are right, the 2's complement system can actually be represented
diagramatically using a cyclic diagram...( i still remember seeing it
in Computer Organisation,Hamacher).   :-)


well, the following snippets could be used to print 256 ASCII
characters then..

1)

char c;
for(c=-127;c<=126;c++)
            printf("%c",c);
printf(%c",127);


2)

unsigned char c;
for(c=0;c<=254;c++)
            printf("%c",c);
printf(%c",255);


3)


int i;
for(i=0;i<=255;i++)
           printf("%c",i);



Thanks and regards,
Shoubhik Bose





On Aug 5, 2:48 am, Gustavo Pacianotto Gouveia
<[email protected]> wrote:
> i think he just said that it is a cyclic data type because of the similarity
> of the two's complement notation (not that char uses it) to a clock. I
> thinks there's some book that uses this similarity to explain how it
> works...
>
> as far as i know python has biginteger implemented by default... but I'm not
> a python programmer. :D
>
> interesting, this trick.. someone could cause a really big damage by using
> it in a real program.
>
> ---
> grato,
>
> Gustavo Pacianotto Gouveia
>
> Escola Politécnica da Universidade de São Paulo
>    [email protected]
>    [email protected]
>    [email protected]
>
> 2010/8/4 Shoubhik <[email protected]>
>
>
>
> > Hey Thanks a lot to all of you,
>
> > I got your point.. Have a good day!
>
> > Thanks and regards,
> > Shoubhik Bose
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "google-codejam" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<google-code%2bunsubscr...@googlegr 
> > oups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-code?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-code?hl=en.

Reply via email to