-->
当前位置:首页 > 题库

题库 第6471页

  • 最新
  • 浏览
  • 评论

For the following piece of code

Luz5年前 (2021-05-10)952
For the following piece of code ```C++ if ( A ˃ B ){ for ( i=0; ii; j-- ) C += A; } else {…

For the following piece of code

Luz5年前 (2021-05-10)969
For the following piece of code ```C++ if ( A ˃ B ){ for ( i=0; ii; j-- ) C += A; } else {…

下面这段代码不规范的,程序可能运行出错,原因是:通过指针`p`访问局部变量`tmp`,而`tmp`的空间在函数运行结束后已经释放

Luz5年前 (2021-05-10)990
下面这段代码不规范的,程序可能运行出错,原因是:通过指针`p`访问局部变量`tmp`,而`tmp`的空间在函数运行结束后已经释放。 ~@[](2) ``` #include int* add(int k){ static int…

If $$N$$ numbers are stored in a singly linked list in increasin

Luz5年前 (2021-05-10)1073
If $$N$$ numbers are stored in a singly linked list in increasing order, then the average time complexity for binary sea…

下面这段代码不规范的,程序有可能运行出错,原因是:通过指针`p`访问局部变量`tmp`,而`tmp`的空间在函数运行结束后已经释

Luz5年前 (2021-05-10)835
下面这段代码不规范的,程序有可能运行出错,原因是:通过指针`p`访问局部变量`tmp`,而`tmp`的空间在函数运行结束后已经释放。 ~@[](2) ``` #include int* add(int k){ int tmp=2…

若`int`型变量为`32`位的,则以下结构体型变量`a`的大小为`13`字节。

Luz5年前 (2021-05-10)2309
若`int`型变量为`32`位的,则以下结构体型变量`a`的大小为`13`字节。 ~@[](2) ``` struct Table{ char color; int length; int width; i…

下面这段代码,将打印输出`2020.00` 。

Luz5年前 (2021-05-10)1891
下面这段代码,将打印输出`2020.00` 。 ~@[](2) ``` #include int main(){ int year=2020; printf("%.2f", year); return 0; }…

下面这段代码,打印输出变量`e`的值,将会进行取整,输出为`2`。

Luz5年前 (2021-05-10)1868
下面这段代码,打印输出变量`e`的值,将会进行取整,输出为`2`。 ~@[](2) ``` #include int main(){ double e = 2.71828; printf("%d", e); re…

若`int`型变量为`32`位的,则以下结构体型变量`a`的大小不一定是`13`字节。

Luz5年前 (2021-05-10)2404
若`int`型变量为`32`位的,则以下结构体型变量`a`的大小不一定是`13`字节。 ~@[](2) ``` struct Table{ char color; int length; int width;…

下面这段代码,打印输出的结果是`6666`。

Luz5年前 (2021-05-10)1736
下面这段代码,打印输出的结果是`6666`。 ~@[](2) ``` #include int main(){ int a,b; a = 0246; b = 6420; printf("%d", a+b)…