由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
JobHunting版 - 再问个C programming考试的题目
相关主题
求问个DP的题你们辞职的时候会告诉你的去向吗?
问个小公司base的问题关于配偶的 Insurance coverage (转载)
问个apple的面试的问题BB电面
[合集] 我也贡献一点点感想(下)学位还没有拿到, 可否申请OPT延期
Bloomberg(在线等)h1b transfer approval之后,
贴点面试题这个contractor offer是不是太差了? 值得先接下来再骑驴找马么?
Interview Questions for an investment bank一直没有很好理解thread join itself,哪位解惑一下
bloomberg onsite报面经求bless公司relocation的钱可以不还吗
相关话题的讨论汇总
话题: max话题: exit话题: define话题: variables话题: q1
进入JobHunting版参与讨论
1 (共1页)
h*****g
发帖数: 944
1
Q1) which of the following statements causes the execution of a program to exit
from the innermost loop?
a) abort
b) break
c) continue
d) exit
是应该选break还是exit?
Q2) which of the following is the correct form for a macro to find the maximum of two variables?
a) #define MAX(A,B) ((A>B)?A:B)
b) #define MAX(A,B)=((A>B)?A:B)
c) #define MAX(A,B)=((A>B)?A:B);
d) #define MAX(A,B)==((A>B)?A:B);
S**I
发帖数: 15689
2

exit
break only exits one loop, so......
maximum of two variables?
none, though a) seems correct, but it will fail under certain circumstances

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

h*****g
发帖数: 944
3
谢谢

circumstances

【在 S**I 的大作中提到】
:
: exit
: break only exits one loop, so......
: maximum of two variables?
: none, though a) seems correct, but it will fail under certain circumstances

l*******y
发帖数: 1498
4

exit
b,c肯定不是了, a 和 d 不知道有什么区别,exit没用过
maximum of two variables?
b,c,d肯定是不对的了,哪里有这样定义macro的。a在某些情况下也不对,比如MAX(a++
, b)

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

S**I
发帖数: 15689
5
exit termiates the process normally, abort aborts the process with abnormal
termination.

++

【在 l*******y 的大作中提到】
:
: exit
: b,c肯定不是了, a 和 d 不知道有什么区别,exit没用过
: maximum of two variables?
: b,c,d肯定是不对的了,哪里有这样定义macro的。a在某些情况下也不对,比如MAX(a++
: , b)

s*****e
发帖数: 16824
6
d, a

exit
maximum of two variables?

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

e********s
发帖数: 248
7
d,a
t*****j
发帖数: 1105
8
Q1 应该选b吧...退出最里面的循环。 d是直接退出程序

exit
maximum of two variables?

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

h********0
发帖数: 27
9

to exit
maximum of two variables?
Q1. b
Q2. a

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

b******n
发帖数: 592
10
Q1: b) break
Q2: a)
I think you reall need to read a C book.

exit
maximum of two variables?

【在 h*****g 的大作中提到】
: Q1) which of the following statements causes the execution of a program to exit
: from the innermost loop?
: a) abort
: b) break
: c) continue
: d) exit
: 是应该选break还是exit?
: Q2) which of the following is the correct form for a macro to find the maximum of two variables?
: a) #define MAX(A,B) ((A>B)?A:B)
: b) #define MAX(A,B)=((A>B)?A:B)

1 (共1页)
进入JobHunting版参与讨论
相关主题
公司relocation的钱可以不还吗Bloomberg(在线等)
please help for an Unix shell problem贴点面试题
没看懂leetcode大牛关于一道概率题的答案Interview Questions for an investment bank
Onsite归来 求Blessbloomberg onsite报面经求bless
求问个DP的题你们辞职的时候会告诉你的去向吗?
问个小公司base的问题关于配偶的 Insurance coverage (转载)
问个apple的面试的问题BB电面
[合集] 我也贡献一点点感想(下)学位还没有拿到, 可否申请OPT延期
相关话题的讨论汇总
话题: max话题: exit话题: define话题: variables话题: q1