Ask a question about computer1001,very easy for specialist.

want to play

新手上路
注册
2005-09-03
消息
333
荣誉分数
0
声望点数
0
1) How many bytes does this word take?
Mother
6

How about the same word written 5 times like this:

Mother
Mother
Mother
Mother
Mother
(5x6)+(4x2)
I do not understand what it means for 4x2,can you interpret it for me?Thank you very much.I am a computer idiot.
 
最初由 want to play 发布
1) How many bytes does this word take?
Mother
6

How about the same word written 5 times like this:

Mother
Mother
Mother
Mother
Mother
(5x6)+(4x2)
I do not understand what it means for 4x2,can you interpret it for me?Thank you very much.I am a computer idiot.
Mother = M.o.t.h.e.r (6 characters = 6 bytes)


Mother
Mother
Mother
Mother
Mother

especially in windows system
the return character is 2 bytes
which means

M.o.t.h.e.r.\0d.\0aM.o.t.h.e.r.\0d.\0aM.o.t.h.e.r.\0d.\0aM.o.t.h.e.r.\0d.\0aM.o.t.h.e.r
there is your (5x6)+(4x2)
5 -> 5 Mothers
6 -> each mothter takes 6 bytes
4 -> 4 new lines
2 -> return character in windows system

comp1001怎么都是教一些莫名其妙而且没用的东西啊....
 
没教开/关机 如何打开“我的电脑” 就已经很不错了 `
 
后退
顶部