登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1788
下列程序的输出结果是 #include<iostream> using namespace std; int main() { int a[] = {2, 4, 6, 8, 10}, *p, **k; p = a; k = &p; printf(" % d", *(p++)); printf(" % d\n", **k); return 0; } 4 4 2 4 2 2 4 6 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
1
0
1782
有如下程序段: #include "stdio.h" class A { public: A() { printf("1"); } A(A &a) { printf("2"); } A &operator=(const A &a) { printf("3"); return *this; } }; int main() { A a; A b = a; } 则程序输出为: 12 13 无法确定 编译出错 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
1
0
1776
Fill the blanks inside class definition class Test { public: ____ int a; ____ int b; public: Test::Test(int _a , int _b) : a( _a ) { b = _b; } }; int Test::b; int main(void) { Test t1(0 , 0) , t2(1 , 1); t1.b = 10; t2.b = 20; printf("%u %u %u %u",t1.a , t1.b , t2.a , t2.b); return 0; } Running result : 0 20 1 20 static/const const/static --/static conststatic/static None of above ...
阅读题目
微软
C语言工程师
多选题
经典指数
1
0
1773
以下的C程序代码片段运行后c和d的值分别是多少() int a =1,b =2; int c,d; c =(a&b)&&a; d =(a&&b)&a; 0,0 0,1 1,0 1,1 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
1
0
1772
如下程序 #include <iostream> using namespace std; class A { public: A() { printf("A"); } }; int main() { A *p1 = new A; A *p2 = (A *)malloc(sizeof(A)); return 0; } 该程序运行结果为 A AA 崩溃 不可预测 ...
阅读题目
迅雷
C语言工程师
单选题
经典指数
1
0
1768
内联函数用什么作标识? virtual mutable extern inline ...
阅读题目
网易
C语言工程师
单选题
经典指数
1
0
1767
找程序的错和不足: int test(char *value,int value_len,int flag) { char temp_buf[BUF_SIZE]; sprintf(temp_buf,value); char temp_new_buf=new char[value_len]; if(flag) { strcat(temp_buf,"flag is true"); printf(temp_buf); return 1; } delete[] temp_new_buf; return 0; } ...
阅读题目
百度
C语言工程师
问答题
经典指数
1
0
1760
下面一段代码,想在调用 f2(1) 时打印 err1,调用 f2(2) 时打印 err4,但是代码中有一些问题,请做尽可能少的修改使之正确。 static int f1( const char *errstr, unsigned int flag ) { int copy, index, len; const static char **__err = { "err1", "err2", "err3", "err4" }; if( flag & 0x10000 ) copy = 1; index = ( flag & 0x300000 ) >> 20; if( copy ) { len = flag & 0xF; errstr = malloc( len ); if( errstr = NULL ) return -1; strncpy( errstr, __err[index], sizeof( errstr ) ); } else errstr = __err + index; ...
阅读题目
百度
C语言工程师
问答题
经典指数
1
0
1760
请用普通的互斥锁编程实现一个读写锁 ...
阅读题目
Linux
C语言工程师
问答题
经典指数
1
0
1757
面向对象是一种思想,使用C++语言来实现下列问题。 1.如何定义一个类? 2.如何创建以及销毁对象? 3.如何实现类的继承? ...
阅读题目
百度
C语言工程师
问答题
经典指数
<<
<
95
96
97
98
99
100
>
>>
998
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录