由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - What does this do ((X & Y) | (X & Z) | (Y & Z))?
相关主题
What is "number of bits set"?一道c++ 题, 找出duplicate numbers
C ++ 问题How to encode YYYY-MM-DD?
Questions about arrow key in linux command promptEmbedded C 编程问题求助
how to code this question of LinkedIn (转载)error while building gcc
bit count in value from 0 - 255cost time of shift operation?
[转载] Mac C++ program questionBinary GCD algorithm
谢谢大家!One More Question! Re: C 程序计算结果reverse bits 的题目
贡献一下:本版上搜集的 Google 面试题 (转载)问个C的问题
相关话题的讨论汇总
话题: what话题: does话题: do话题: bit话题: 两个
进入Programming版参与讨论
1 (共1页)
j****i
发帖数: 305
1
rt
f*******y
发帖数: 55
2
X Y Z O
T T T T
T T F T
T F T T
T F F F
F T T T
F T F F
F F T F
F F F F
两个或两个以上为假是结果为假
两个或两个以上为真是结果为真
j****i
发帖数: 305
3
Yeah. But what does it do in terms of x,y,z?

【在 f*******y 的大作中提到】
: X Y Z O
: T T T T
: T T F T
: T F T T
: T F F F
: F T T T
: F T F F
: F F T F
: F F F F
: 两个或两个以上为假是结果为假

z*****a
发帖数: 3809
4
It's basically a majority vote for each bit position.
For each bit position in the result, the bit is set to 1 if and only if at
least two out of the three inputs (X, Y, Z) have 1 in the corresponding bit.
t****t
发帖数: 6806
5
if x, y, z are bits, the results is the carry of x+y+z.

【在 j****i 的大作中提到】
: rt
1 (共1页)
进入Programming版参与讨论
相关主题
问个C的问题bit count in value from 0 - 255
谁知道[转载] Mac C++ program question
C++读文件谢谢大家!One More Question! Re: C 程序计算结果
10G文件的排序问题贡献一下:本版上搜集的 Google 面试题 (转载)
What is "number of bits set"?一道c++ 题, 找出duplicate numbers
C ++ 问题How to encode YYYY-MM-DD?
Questions about arrow key in linux command promptEmbedded C 编程问题求助
how to code this question of LinkedIn (转载)error while building gcc
相关话题的讨论汇总
话题: what话题: does话题: do话题: bit话题: 两个