登录
|
注册
公司
标签
文章
搜索
搜狐
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
2654
union Test { char a[4]; short b; }; Test test; test.a[0]=256; test.a[1]=255; test.a[2]=254; test.a[3]=253; printf("%d\n",test.b); 问题:在80X86架构下,输出什么值? -128 -256 128 256 ...
阅读题目
搜狐
研发工程师
C语言工程师
单选题
经典指数
1
0
5380
int A[2][3]={1,2,3,4,5,6};,则A[1][0]和*(*(A+1)+1)的值分别是() 4 5 4 3 3 5 3 4 ...
阅读题目
搜狐
2013
研发工程师
C语言工程师
数组
单选题
经典指数
1
0
2486
有如下几个类和函数定义,选项中描述正确的是:【多选】() class A { public: virtual void foo() {} //… }; class B { public: virtual void foo() {} //… }; class C : public A , public B { public: virtual void foo() {} //… }; void bar1(A * pa) { B * pc = dynamic_cast<B * >(pa); //… } void bar2(A * pa) { B * pc = static_cast<B * >(pa); //… } void bar3() { C c; A * pa = & c; B * pb = static_cast<B * >(static_cast<C * >(pa)); ...
阅读题目
搜狐
C语言工程师
多选题
经典指数
1
0
3064
说明一下++p 与 p++ 的区别。 没有区别 ++p更好一些 p++更好一些 和编译器有关 ...
阅读题目
搜狐
研发工程师
C语言工程师
单选题
经典指数
0
0
1634
#include int main() { enum{a,b=5,c,d=4,e}; printf("%d,%d,%d,%d,%d\n",a,b,c,d,e); return 0; } 输出结果为? ...
阅读题目
搜狐
C语言工程师
问答题
经典指数
1
0
2738
以下程序的打印结果是() 1.#include<iostream> 2.using namespace std; 3. 4.void swap_int(int a , int b) 5.{ 6. int temp = a; 7. a = b; 8. b = temp; 9.} 10. 11.void swap_str(char*a , char*b) 12.{ 13. char*temp = a; 14. a = b; 15. b = temp; 16.} 17. 18.int main(void) 19.{ 20. int a = 10; 21. int b = 5; 22. char*str_a = "hello world"; 23. char*str_b = "world hello"; 24. swap_int(a , b);. 25. swap_str(str_a , str_b); 26. printf("%d %d %s %s\n",a,b,str_a,str_b); 27. 28 ...
阅读题目
搜狐
2013
研发工程师
C语言工程师
单选题
经典指数
1
0
2394
windows API中VirtualAlloc()函数有个的名为flAllocation Type的参数,MSDN对其取值为MEM_RESERVE时函数的行为描述为“Reserves a range of the process’s virtual address space without allocating any actual physical storage in memory or in the paging file on disk.You can commit reserved pages in subsequent calls to the VirtualAlloc function.”。请问理论上如下哪个数据结构容器的实现方法可利用本函数的上述行为来提高分摊运行效率同时尽量减少物理内存的浪费?( ) Vector List RB-tree Set Hash Map ...
阅读题目
搜狐
C语言工程师
单选题
经典指数
1
0
2472
以基本类型划分来看,从四个选项选出不同的一个。 enum char float int ...
阅读题目
搜狐
研发工程师
C语言工程师
单选题
经典指数
1
0
5063
请问在64位平台机器下sizeof(string_a),sizeof(string_b)大小分别是() 1.char *string_a=(char *)malloc(100*sizeof(char)); 2.char string_b[100]; 8 100 100 8 100 100 8 8 ...
阅读题目
搜狐
2013
研发工程师
C语言工程师
字符串
单选题
经典指数
1
0
2852
实现一个对链表排序的算法,C/C++可以使用std::list,Java使用LinkedList 要求先描述算法,然后再实现,算法效率尽可能高效。 ...
阅读题目
Java
搜狐
C语言工程师
链表
问答题
经典指数
1
2
3
4
38
题目数
1
贡献者
34
答案数
扫描后移动端查看
我也分享一个题目
"搜狐"公司热门职位
研发工程师
测试工程师
机器学习
iOS
数理统计
自然语言处理
java
Java
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
阿里巴巴
网易
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录