[ om / jp / 2d ] [ home ]

/jp/ - 2D/Random

Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1683034815299.jpg (252.91 KB, 1333x1000, image.jpg)

No. 590533

A byte can only hold 0-255, if you try to make it hold 256 it will loop back to 0, 258 would loop back to 2, and so on, this is called an overflow error.

Different data types (int, long, double, etc.) can hold different amounts. An integer on modern compilers and computers is 4 bytes, which means it can hold 0 to 4294967295.

There's no such thing as infinite according to a computer. If you are defining a variable, it needs to know how much memory it should allocate for it. Should it allocate 4 bytes of RAM or 8?

If you were to take a simple 2+2 program and decompile it, you will see the computer push 2 into a register, push the other 2 into another register, and then add one register to the other.

Essentially this is how computers work, numbers go into registers, and then the computer does basic math on them. RAM is for storing numbers not actively being math'd on by the processor.

No.590534

File: 1683035191205.jpg (140.33 KB, 522x1000, sample-83f675d57b6a7a8344d….jpg)


No.590535

gpthread

No.590537

scared the ais have managed to perfectly replicate buttmin think the singularity might be here



Delete Post [ ]
[Return]
[ om / jp / 2d ] [ home ]