登录
|
注册
公司
标签
文章
搜索
阿里巴巴
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1824
阅读如下的程序: #include <iostream> using namespace std; struct B { int i; virtrual int f() { cout << "1"; return 1; } virtual const B &f() const { cout << "2"; return *this; } int g() { cout << "3"; return 3; } }; struct D: B { int i; int f() { cout << "4"; return 4; } const B &f() const { cout << "5"; return *this; ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
0
0
2839
两个线程并发执行以下代码,假设a是全局变量,初始为1,那么以下输出______是可能的? void foo(){ ++a; printf("%d ",a); } 3 2 2 3 3 3 2 2 ...
阅读题目
阿里巴巴
C语言工程师
操作系统
并发
多选题
经典指数
1
0
6318
假定一个二维数组的定义语句为“int a[3][4]={{3,4},{2,8,6}};”,则元素a[1][2]的值为 6 4 2 8 ...
阅读题目
阿里巴巴
C语言工程师
数组
单选题
经典指数
1
0
6200
以下程序输出结果是____ class A { public: A ():m_iVal(0){test();} virtual void func() { std::cout<<m_iVal<<‘ ’;} void test(){func();} public: int m_iVal; }; class B : public A { public: B(){test();}; virtual void func() { ++m_iVal; std::cout<<m_iVal<<‘ ’; } }; int main(int argc ,char* argv[]) { A*p = new B; p->test(); return 0; } 1 0 0 1 0 1 2 2 1 0 不可预期 以上都不对 ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
单选题
经典指数
1
0
3248
程序出错在什么阶段__? int main(void) { http://www.taobao.com cout << "welcome to taobao" << endl; } 预处理阶段出错 编译阶段出错 汇编阶段出错 链接阶段出错 运行阶段出错 程序运行正常 ...
阅读题目
2015
阿里巴巴
研发工程师
C语言工程师
编译和体系结构
单选题
经典指数
0
0
2575
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 & 0xff00ff) + ((temp & 0xff00ff00)>>8); temp = (temp & 0xffff) + ((temp & 0xffff0000)>>16); return temp; } 请问func(0x1f530828)的返回值是: 15 14 16 13 11 12 ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
1
0
3637
声明一个指向含有10个元素的数组的指针,其中每个元素是一个函数指针,该函数的返回值是int,参数是int*,正确的是() (int *p[10])(int*) int [10]*p(int *) int (*(*p)[10])(int *) int ((int *)[10])*p 以上选项都不正确 ...
阅读题目
阿里巴巴
2010
C语言工程师
数组
单选题
经典指数
1
0
2605
如下函数,在32bits系统foo(2^31-3)的值是_______(这里的^是指数的意思) int foo (int x) return x & -x 0 1 2 4 ...
阅读题目
阿里巴巴
C语言工程师
编译和体系结构
单选题
经典指数
1
0
1561
类MyContainerImpl的声明如下: class MyContainerImpl { public: templateMyContainerImpl *alloc(); templatestatic MyContainerImpl *adjust(); }; 函数模板f的定义如下: 下列哪些语句放到函数模板f定义中的括号内是合法的? T* p1 = p->alloc(); T* p2 = p->template alloc(); T :: adjuSt(); T :: template adjust(); ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
1
0
2240
下面一段代码的输出结果是_______。 void f(char *c, char d){ *c = *c + 1; d = d+1; cout<<*c<<d<<endl; } int main(){ char a ='A', b ='a'; f(&b,a); cout << a <<b << endl; return 0; } BaBa aBaB AbAb bBAb ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
1
2
3
4
5
45
题目数
1
贡献者
45
答案数
扫描后移动端查看
我也分享一个题目
"阿里巴巴"公司热门职位
研发工程师
数理统计
机器学习
软件研发工程师
Android
测试工程师
Hadoop
iOS
自然语言处理
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录