题库 第5994页
单选题:变量`a`和`b`为`double`型,以下判断`a`与`b`数值相等的最恰当的写法是:
变量`a`和`b`为`double`型,以下判断`a`与`b`数值相等的最恰当的写法是: @[C](2)A. `a == b`B. `a = b`C. `(a-b˃=-1e-6) && (a-b˂=1e-6)`D. `a - b ==…
单选题:定义变量`int a,b;`,则表达式`a = (b = 3, 4), 5;`执行过后,`a`、`b`的值分别是:
定义变量`int a,b;`,则表达式`a = (b = 3, 4), 5;`执行过后,`a`、`b`的值分别是: @[C](2)A. 5, 4B. 4, 4C. 4, 3D. 3, 3A.5, 4B.4, 4C.4, 3D.3, 3答…
单选题:对于定义`char str[] = "abc\0def";` (注:其中`0`为数字零),求字符串str的长度len(即调用标准
对于定义`char str[] = "abc\0def";` (注:其中`0`为数字零),求字符串str的长度len(即调用标准库函数strlen:`len = strlen(str)`)和数组str的大小size(即`size = siz…
单选题:以下哪一种对于`str`的定义不恰当,有可能使`strlen(str)`(strlen是定义在C标准库中的函数)获得非预期的结果
以下哪一种对于`str`的定义不恰当,有可能使`strlen(str)`(strlen是定义在C标准库中的函数)获得非预期的结果: @[C](2)A. `char str[] = "hello world!";`B. `char str…
单选题:假设有变量定义如下 `int a, k;` 则以下哪条语句不能确保将变量`k`的值变为0:
假设有变量定义如下 `int a, k;` 则以下哪条语句不能确保将变量`k`的值变为0: @[C](2)A. `k = a + ~a + 1;`B. `k ^= k;`C. `k = (k && !a) || (!k && a);`…
单选题:定义`int score = 75;` 则表达式 `80 > score > 70` 的值是:
定义`int score = 75;` 则表达式 `80 ˃ score ˃ 70` 的值是: @[B](2)A. 1B. 0C. trueD. falseA.1B.0C.trueD.false答案:B…
单选题:定义`int score = 75;` 则表达式 `80 < score < 90` 的值是:
定义`int score = 75;` 则表达式 `80 ˂ score ˂ 90` 的值是: @[A](2)A. 1B. 0C. trueD. falseA.1B.0C.trueD.false答案:A…
单选题:以下哪个选项中的`p`是指针:
以下哪个选项中的`p`是指针: @[C](2)A. `int* *p();`B. `int *p();`C. `int (*p)[5];`D. `int *p[6];`A.`int* *p();`B.`int *p();`C.`int…
单选题:When inserting a new key `K` into a binary search tree `T` with
When inserting a new key `K` into a binary search tree `T` with 512 nodes, the worst-case number of comparisons between…
单选题:For an in-order threaded binary tree, if the pre-order and in-or
For an in-order threaded binary tree, if the pre-order and in-order traversal sequences are `D A B C F E ` and `B A C D…