Prem said:
Hello
can anybody please tell me what is the significance of
0;
1;
or something like
100;
thanks
You would have better answers if you posted to a math
newsgroup.
Zero (0) is the almighty nothing. It is significant
because you can't divide by it (or if you did, the
result would go on forever). Another significance
is that you can multiply any number by zero and get
the same result: 0. Zero is significant enough
that many processors have a "jump on zero"
instruction. There is even a song about zero,
I suggest you search for "Schoolhouse Rock" and
"My Hero Zero". This leads to the fact that
zero is a place holder allowing numbers greater
than 9. Zero is also used to represent FALSE.
One (1) is very solitaire. It is lonely. When
added to another integer, it produces the next
one in a sequence. When you multiply by one,
you get your original number back. It can also
be used to represent TRUE.
As for 100, there must be at least a hundred
reasons as to why it is significant.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book