登录
|
注册
公司
标签
文章
搜索
C语言工程师
热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
0
0
2566
观察下面一段代码: class ClassA { public: virtual ~ ClassA(){}; virtual void FunctionA(){}; }; class ClassB { public: virtual void FunctionB(){}; }; class ClassC : public ClassA,public ClassB { public: }; ClassC aObject; ClassA* pA=&aObject; ClassB* pB=&aObject; ClassC* pC=&aObject; 关于pA,pB,pC的取值,下面的描述中正确的是: pA,pB,pC的取值相同. pC=pA+pB pA和pB不相同 pC不等于pA也不等于pB ...
阅读题目
腾讯
研发工程师
C语言工程师
单选题
经典指数
0
0
2557
编写代码把16进制表示的串转换为3进制表示的串。例如x="5",则返回:"12";又例如:x="F",则返回"120"。 ...
阅读题目
网易
C语言工程师
复杂度
问答题
经典指数
0
0
2532
int func(unsigned int i) { unsigned int temp = i; temp = (temp & 0x55555555) + ((temp & 0xaaaaaaaa) >> 1); temp = (temp & 0x33333333) + ((temp & 0xcccccccc) >> 2); temp = (temp & 0x0f0f0f0f) + ((temp & 0xf0f0f0f0) >> 4); temp = (temp & 0x00ff00ff) + ((temp & 0xff00ff00) >> 8); temp = (temp & 0x0000ffff) + ((temp & 0xffff0000) >> 16); return temp; } 请问 func(0x11530828)的返回值是: 1 ...
阅读题目
阿里巴巴
基础知识
C语言工程师
填空题
经典指数
0
0
2522
请用C++实现以下print函数,打印链表I中的所有元素, 每个元素单独成一行 void print(const std::list &l){ } ...
阅读题目
网易
C语言工程师
链表
问答题
经典指数
0
0
2516
下面哪一个是sort的template的正确写法 void sort(class A first,class A last,class B pred) void template(class A,class B)sort(A first,A last,B pred) template<class A><class B> void sort(A first,A last,B pred) template<class A,class B> void sort(A first,A last,B pred) ...
阅读题目
奇虎360
2015
基础知识
C语言工程师
单选题
经典指数
0
0
2501
执行如下程序代码后, a = 0; c = 0; do { --c; a = a - 1; } while ( a > 0 ); c的值是( ) 0 1 -1 死循环 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
0
0
2475
程序的完整编译过程分为是:预处理,编译,汇编等,如下关于编译阶段的编译优化的说法中不正确的是()? 死代码删除指的是编译过程直接抛弃掉被注释的代码 函数内联可以避免函数调用中压栈和退栈的开销 For循环的循环控制变量通常很适合调度到寄存器访问 强度削弱是指执行时间较短的指令等价的替代执行时间较长的指令 ...
阅读题目
IBM
C语言工程师
单选题
经典指数
0
0
2475
What is the result of the following program? char* f(char *str, char ch) { char *it1 = str; char *it2 = str; while (*it2 != '\0') { while (*it2 == ch) { it2++; } *it1++ = *it2++; } return str; } void main(int argc, char *argv[]) { char *a = new char[10]; strcpy(a, "abcdcccd"); cout << f(a, 'c'); } abdcccd abdd abcc abddcccd Access Violation ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
0
0
2470
在64位系统中,有如下类: class A { public: void *p1; private: void *p2; protected: void *p3; }; class B: public A {}; 那么sizeof(B)的数值是() 8 16 24 32 ...
阅读题目
基础知识
C语言工程师
欢聚时代
单选题
经典指数
0
0
2443
以下程序的输出结果是________。 void fut(int**s,int p[2][3]) { **s=p[1][1]; } void main( ) { int a[2][3]={1,3,5,7,9,11},*p; p=(int*)malloc(sizeof(int)); fut(&p,a); cout<< *p; } 7 9 1 11 ...
阅读题目
C语言工程师
C语言工程师
单选题
经典指数
<<
<
5
6
7
8
9
10
>
>>
128
题目数
2
贡献者
1010
答案数
扫描后移动端查看
我也分享一个题目
相关标签
迅雷
研发工程师
2016
腾讯
百度
奇虎360
2015
微软
华为
2014
同类标签
研发工程师
游戏运营
产品运营
运维工程师
Android
测试工程师
.NET
iOS
机器学习
Go
微信公众号
欢迎加入,一起群聊
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录