登录
|
注册
公司
标签
文章
搜索
阿里巴巴
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
3626
有一个类B继承自类A,他们数据成员如下: class A { ... private: int &a; }; class B : public A { ... private: int a; public: const int b; A c; static const char* d; A* e; }; 则构造函数中,成员变量一定要通过初始化列表来初始化的是____。 b c b c e b c d e c e b d b e ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
单选题
经典指数
1
0
3308
有一个类A,其数据成员如下: class A { ... private: int a; public: const int b; float* &c; static const char* d; static double* e; }; 则构造函数中,成员变量一定要通过初始化列表来初始化的是:______。 a b c b c b c d e b c d b c ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
单选题
经典指数
1
0
3000
给定一个query和一个text,均由小写字母组成。要求在text中找出以同样的顺序连续出现在query中的最长连续字母序列的长度。例如,query为 "acbac",text为"acaccbabb",那么text中的"cba"为最长的连续出现在query中的字母序列,因此,返回结果应该为其长度3。请注意程序效率。 ...
阅读题目
2015
阿里巴巴
C语言工程师
字符串
问答题
经典指数
1
0
2607
如下函数,在32bits系统foo(2^31-3)的值是_______(这里的^是指数的意思) int foo (int x) return x & -x 0 1 2 4 ...
阅读题目
阿里巴巴
C语言工程师
编译和体系结构
单选题
经典指数
1
0
3389
给定如下代码: int x[4]={0}; int y[4]={1}; 数组x和y的值为() {0,0,0,0},{1,1,1,1} {0,0,0,0},{1,0,0,0} {0,不确定},{1,不确定} 与编译器相关 ...
阅读题目
阿里巴巴
2010
C语言工程师
数组
单选题
经典指数
1
0
1826
阅读如下的程序: #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语言工程师
单选题
经典指数
1
0
3386
函数func的定义如下: void func(const int& v1, cont int& v2) { std::cout << v1 << ' '; std::cout << v2 << ' '; } 则以下代码输出结果为____。 int main (int argc, char* argv[]) { int i=0; func(++i,i++); return 0; } 0 1 1 2 2 1 2 0 0 2 1 0 ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
单选题
经典指数
1
0
6203
以下程序输出结果是____ 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
3463
struct T { char a; int *d; int b; int c:16; double e; }; T *p; 在64位系统以及64位编译器下,以下描述正确的是 sizeof(p) == 24 sizeof(*p) == 24 sizeof(p->a) == 1 sizeof(p->e) == 4 ...
阅读题目
2015
阿里巴巴
C语言工程师
编译和体系结构
单选题
经典指数
1
0
4010
在一台主流配置的PC机上,调用f(35)所需的时间大概是_______。 int f(int x) { int s=0; while(x-- >0) s+=f(x); return max(s,1); } 几毫秒 几秒 几分钟 几小时 ...
阅读题目
阿里巴巴
C语言工程师
单选题
经典指数
1
2
3
4
5
45
题目数
1
贡献者
45
答案数
扫描后移动端查看
我也分享一个题目
"阿里巴巴"公司热门职位
研发工程师
数理统计
机器学习
软件研发工程师
Android
测试工程师
Hadoop
iOS
自然语言处理
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录