Sunday, July 09, 2006

The Signed Integer Theory

Here is another of my theories. Will keep it simple.

The signed integer dataype in C provides a valueable insight into how people behave to situations of pain, stress and emotional distress.

A signed int has the limits of -32768 to 32767. So if:

int i = 100;
i = i+1;

The new value of 'i' is 101.

Consider 'i' to be at 32766.

i = i + 1;

Value of 'i' = 32767;

i = i + 1;

New value of 'i' = ? Its -32768. When 'i' hits the limit of its datatype, it simply convolutes back from the other side of the limit.

i = i + 1;

Value of 'i' = -32767.

And thus, it goes in loops.

Humans deal with trauma in a similar way. Each one has an individual threshold. Once the accumulated stress reaches the limit, a person simply snaps. Anymore stress just becomes a big joke to him. He is on the 'other side'. Completely de-stressed.

8 comments:

Id it is said...

Haven't heard from you in a while! I hope all is well.

$ |-| r |_| + !=! ||..!! said...

WOW... never thought signed unsigned could 've so much importance..
i always thought life is like an amplifier.. a cascaded one.. u keep somethin in ur mind.. tats d i/p.. amplifies n comes out.. o/p.. which is the i/p fpr the next one.. n so on... so.. neve hold grudges of unhealthy thoughts...!

Videos by Professor Howdy said...
This comment has been removed by a blog administrator.
Anurag said...

yaar tune bataya nahi tu inta philosophical hai :o)
acha tha

samy said...

So True :D!!

Ships said...

LOLZ... never thought of the significance of integer limits! programming seems to have newer n interesting aspects to it!

Anjali Bhardwaj said...

"Pain can be controlled - you just disconnect it." - The Terminator

The pain "only goes down to a certain point" and then it stops - The Fountainhead

Jaiku said...

I will tell you how life gets back at this funda
void main(void)
{
int i;
i++;
if i>32000
i=destress(i);
}

int y=destress(int x)
/*so called destressing function*/
{
if (x>32767)
{
x++;
x=mod(x);
}
else x= destress(x)
}
Rule of Life : There is no other side.
THERE IS NO DARK SIDE OF THE MOON, REALLY, AS A MATTER OF FACT, ITS ALL DARK!!!!