登录
|
注册
公司
标签
文章
搜索
微软
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
3192
求下面函数的返回值。 int func(x) { int countx = 0; while (x) { countx ++; x = x & (x - 1); } return countx; } 假定x = 9999。 8 1 100 其他 ...
阅读题目
微软
C语言工程师
单选题
经典指数
1
0
3158
请编写能直接实现strstr()函数功能的代码。 ...
阅读题目
微软
C语言工程师
字符串
问答题
经典指数
1
0
3048
Which of the following statement(s) equal(s) value 1 in C programming language? the return value of main function if program ends normally return (7&1) char *str="microsoft"; return str=="microsoft" return "microsoft"=="microsoft" None of the above ...
阅读题目
微软
2015
腾讯
C语言工程师
多选题
经典指数
1
0
3025
下面程序的执行结果: class A{ public: long a; }; class B : public A { public: long b; }; void seta(A* data, int idx) { data[idx].a = 2; } int main(int argc, char *argv[]) { B data[4]; for(int i=0; i<4; ++i){ data[i].a = 1; data[i].b = 1; seta(data, i); } for(int i=0; i<4; ++i){ std::cout << data[i].a << data[i].b; } return 0; } 11111111 12121212 11112222 21212121 22221111 ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
1
0
3022
How many times is f() called when calculating f(10)? int f(int x) { if(x <= 2) return 1; return f(x - 2) + f(x - 4) + 1; } 14 18 20 24 None of the above ...
阅读题目
微软
研发工程师
递归
C语言工程师
单选题
经典指数
1
0
2983
下面哪些调用转换支持可变长度参数 cdecl stdcall pascal fastcal ...
阅读题目
微软
研发工程师
C语言工程师
单选题
经典指数
1
0
2853
In C++, which of the following keyword(s) can be used on both a variable and a function? static virtual extern inline const ...
阅读题目
微软
2015
腾讯
C语言工程师
多选题
经典指数
1
0
2805
struct mybitfields { unsigned short a : 4; unsigned short b : 5; unsigned short c : 7; } test void main(void) { int i; test.a = 2; test.b = 3; test.c = 0; i = *((short *)&test); printf("%d\n", i); } 30 50 60 20 ...
阅读题目
微软
C语言工程师
编译和体系结构
单选题
经典指数
1
0
2801
已知strcpy的函数原型:char *strcpy(char *strDest, const char *strSrc)其中strDest 是目的字符串,strSrc 是源字符串。不调用C++/C 的字符串库函数,请编写函数 strcpy。 ...
阅读题目
微软
C语言工程师
问答题
经典指数
1
0
2726
将“引用”作为函数参数有哪些特点? 引用传递和指针传递没有差别 传递引用给函数与传递指针的效果是一样的 使用引用传递函数的参数,在内存中并没有产生实参的副本,它是直接对实参操作;而使用一般变量传递函数的参数,当发生函数调用时,需要给形参分配存储单元,形参变量是实参变量的副本; 指针传递下,在主调函数的调用点处,必须用变量的地址作为实参。而引用更容易使用,更清晰。 ...
阅读题目
微软
C语言工程师
多选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
74
题目数
1
贡献者
57
答案数
扫描后移动端查看
我也分享一个题目
"微软"公司热门职位
研发工程师
测试工程师
C#工程师
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录