G
G
gaiv20112017-04-10 22:11:32
C++ / C#
gaiv2011, 2017-04-10 22:11:32

A byte holds 256 characters?

I'm very sorry for the stupid question, but while reading the literature I got a little confused and would like to ask a couple of questions
1) In V, S, the byte data type is assigned a number from 0 to 255, that is, thanks to the instruction and the binary system 0,1,2,3,4 ...255 counts as the number of commands?
2) Do I understand correctly that in a pure byte (without instructions) you can shove, say, 256 numbers? (like 111111111111111...)

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dimonchik, 2017-04-10
@gaiv2011

in wartime, you can put even more into a byte,
but usually the number one works like this
, its value is from 0 to 255

A
AxisPod, 2017-04-13
@AxisPod

Alas, a byte does not have a quantum basis behind it and you cannot store 256 numbers in one byte at the same time.

Z
Zubastik_1, 2017-04-10
@Zubastik_1

If I'm not mistaken, then a byte is 8 memory cells.

V
VectorASD, 2021-12-07
@VectorASD

It would be more correct to say - 256 variations of a character , not 256 characters ... These are extremely 2 different things, like earth and sky ;'-} I will not explain why, because I just concocted a short answer :S For me, this has already been done above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question