Redian新闻
>
今天一个很怪异的面试题目
avatar
今天一个很怪异的面试题目# JobHunting - 待字闺中
d*r
1
是不是肯定是黑色?
orange的也是这个型号吗?到底有些啥颜色的,谢谢!
avatar
G*G
2
want to divorce? not easy.
see the wilson's case.
but we are experienced lawyer. we provided premium service
for ten years for divorce.
our suggestions:
1) if you plan a divorce, don't delay. the more delay, the more
impossible it will be.
2) if you want to divorce, don't be shy. shy? no way.
3) if you want to divorce, don't show sympathy. sympathy? that's
not for a partner which will divorce you.
call us now. 800-DIV-ORCE
You won't be disappointed.
avatar
i*1
3
#include
void f(int n)
{
if (n)
{
int labs, research;
research = n - 1;
if (research > 15) labs = 3;
else labs = 0;
if(labs) labs *= 100;
if (labs) printf("%d - 1 > 15\n", n);
}
}
int main(void)
{
f(13);
return 0;
}
代码大致是这样的,可能中间某个地方有点儿不同。题目问,这个程序为何会输出“13
- 1 > 15”这样的东西。请问一下,这可能吗?我举得题目出错了。
avatar
c*y
4
都是黑的。就一种型号

【在 d*********r 的大作中提到】
: 是不是肯定是黑色?
: orange的也是这个型号吗?到底有些啥颜色的,谢谢!

avatar
f*k
5
操, 你丫原来是老邢

【在 G***G 的大作中提到】
: want to divorce? not easy.
: see the wilson's case.
: but we are experienced lawyer. we provided premium service
: for ten years for divorce.
: our suggestions:
: 1) if you plan a divorce, don't delay. the more delay, the more
: impossible it will be.
: 2) if you want to divorce, don't be shy. shy? no way.
: 3) if you want to divorce, don't show sympathy. sympathy? that's
: not for a partner which will divorce you.

avatar
q*z
6
不明白你在说什么
avatar
c*e
7
为啥我的盒子都是标示organge?

【在 c******y 的大作中提到】
: 都是黑的。就一种型号
avatar
p*2
8
你试过这个程序吗?真的输出了那东西了吗?
avatar
b*g
9
lol

【在 c********e 的大作中提到】
: 为啥我的盒子都是标示organge?
avatar
a*o
10
I compiled and ran this. It does not print anything.
avatar
s*t
11
看样机是黑色,不过盒子外贴了个圈圈是橙色
没看到有color写black

【在 d*********r 的大作中提到】
: 是不是肯定是黑色?
: orange的也是这个型号吗?到底有些啥颜色的,谢谢!

avatar
y*o
12
if (research > 15) labs = 3;
: else labs = 0;
research =12;
then labs=0;
so it will not print anything because if(0) ==if(false)

【在 i****1 的大作中提到】
: #include
: void f(int n)
: {
: if (n)
: {
: int labs, research;
: research = n - 1;
: if (research > 15) labs = 3;
: else labs = 0;
: if(labs) labs *= 100;

avatar
k*g
13
Maybe you didn't remember it exactly.
The original question probably involved a mismatched if-else.
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。