登录
|
注册
公司
标签
文章
搜索
阿里巴巴
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
3642
声明一个指向含有10个元素的数组的指针,其中每个元素是一个函数指针,该函数的返回值是int,参数是int*,正确的是() (int *p[10])(int*) int [10]*p(int *) int (*(*p)[10])(int *) int ((int *)[10])*p 以上选项都不正确 ...
阅读题目
阿里巴巴
2010
C语言工程师
数组
单选题
经典指数
1
0
2241
下面一段代码的输出结果是_______。 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
0
2607
如下函数,在32bits系统foo(2^31-3)的值是_______(这里的^是指数的意思) int foo (int x) return x & -x 0 1 2 4 ...
阅读题目
阿里巴巴
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语言工程师
单选题
经典指数
2
0
6165
下面是折半查找的实现,data是按升序排列的数据,x是查找下标,y是查找的上标, v是查找的数值,返回v在data的索引,若没找到返回-1。代码不正确是____。 public int bsearch(int[] data, int x, int y, int v) { int m; while(x<y){ //1 m = x + (y-x)/2; //2 if(data[m] == v) return m; //3 else if(data[m] > v) y = m; //4 else x = m; //5 } return -1; //6 } 1 2 3 4 5 6 ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
查找
单选题
经典指数
1
0
3742
以下程序输出结果是____。 class A { public: virtual void func(int val = 1) { std::cout<<"A->"<<val <<std::endl;} virtual void test() { func();} }; class B : public A { public: void func(int val=0) {std::cout<<"B->"<<val <<std::endl;} }; int main(int argc ,char* argv[]) { B*p = new B; p->test(); return 0; } A->0 B->1 A->1 B->0 编译出错 以上都不对 ...
阅读题目
阿里巴巴
2016
研发工程师
C语言工程师
单选题
经典指数
1
0
2867
下面的说法那个正确 #define NUMA 10000000 #define NUMB 1000 int a[NUMA], b[NUMB]; void pa() { int i, j; for(i = 0; i < NUMB; ++i) for(j = 0; j < NUMA; ++j) ++a[j]; } void pb() { int i, j; for(i = 0; i < NUMA; ++i) for(j = 0; j < NUMB; ++j) ++b[j]; } pa 和 pb 运行的一样快 pa 比 pb 快 pb 比 pa 快 无法判断 ...
阅读题目
阿里巴巴
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
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
3420
在32位机器上,下列代码中 sizeof(a)的值是() 20 21 22 24 非以上选项 ...
阅读题目
阿里巴巴
2010
C语言工程师
Windows
单选题
经典指数
1
2
3
4
5
45
题目数
1
贡献者
45
答案数
扫描后移动端查看
我也分享一个题目
"阿里巴巴"公司热门职位
研发工程师
数理统计
机器学习
软件研发工程师
Android
测试工程师
Hadoop
iOS
自然语言处理
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录