登录
|
注册
公司
标签
文章
搜索
腾讯
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
1907
char p1[] = “Tencent”, void*p2 = malloc((10)在32位机器上sizeof(p1)和sizeof(p2)对应的值是? 8:0 4:10 8:4 4:4 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
1
0
2610
抽象基类是指( ) 嵌套类 派生类 含有纯虚函数 多继承类 ...
阅读题目
百度
2015
腾讯
C语言工程师
多选题
经典指数
1
0
2500
现在有以下两个函数,调用test的结果是 char* getMem(void) { char p[] = “hello world ”; p[5] = 0x0; return p; } void test(void) { char *s = 0x0; s = getMem(); printf(s); } hello 无输出 Hello0world 不确定 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
1
0
3435
阅读下列函数说明和C代码,将应填进(n)处的字句写在答题纸的对应栏内。 【说明】设有一个带表头结点的双向循环链表L,每个结点有4个数据成员:指向先驱结点的指针prior、指向后继结点的指针next、存放数据的成员data和访问频度freq。所有结点的freq初始时都为0.每当在链表上进行一次L.Locate(x)操纵时,令元素值x的结点的访问频度freq加1,并将该结点前移,链接到现它的访问频度相等的结点后面,使得链表中所有结点保持按访问频度递减的顺序排列,以使频繁访问的结点总是靠近表头。 【函数】 void Locate(int &x) { < 结点类型说明 > *p = first->next; while (p != first && 1 ) p = p->next; if (p != first) { 2 ; < 结点类型说明 > *current = p; current->prior->next = current->next; current->next->prior = current->prior; p = current->pri ...
阅读题目
2014
腾讯
研发工程师
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语言工程师
多选题
经典指数
0
0
2352
把字符串转换为整数 例如:"-123" -> -123 #include #include using namespace std; int num(string str) { int num = 0; for (int i = 0; i < ___1___; i ++) { int k = ___2__; num = __3___; } return num; } int main() { string str = "-123"; int n = 0; if ( str[0] == '-' ) n = -1 * num (str.substr(1)); else n = num(str); cout ...
阅读题目
腾讯
C语言工程师
字符串
问答题
经典指数
1
0
2761
32位机器上定义如下结构体: struct xx { long long _x1; char _x2; int _x3; char _x4[2]; static int _x5; }; int xx::_x5; 19 20 15 24 ...
阅读题目
腾讯
C语言工程师
编译和体系结构
多选题
经典指数
0
0
2166
NSTimer会retain目标对象,可能会造成循环引用,请在NSTimer的基础上封装一个不retain目标对象的Timer,要求至少实现下面两个方法,并介绍设计思路。 @interface NSTimer : NSObject +(NSTimer *)scheduledTimerWithTimeInterval:(NSTimerInterval)ti target:(id)aTarget selector:(SEL)aSelector userInfo:(id)userinfo repeats:(BOOL)yesOrNo; -(void)invalidate; //other methods… @end ...
阅读题目
腾讯
C语言工程师
系统设计
问答题
经典指数
1
0
3006
下列程序的输出是:() #define add(a+b) a+b int main() { printf("%d\n", 5 * add(3 + 4)); return 0; } 23 35 16 19 ...
阅读题目
腾讯
C语言工程师
单选题
经典指数
1
0
4490
类B从类A派生,则类B可以访问类A中的( )成员? public成员 private成员 protected成员 数据成员 函数成员 ...
阅读题目
Java
微软
2015
腾讯
C语言工程师
多选题
经典指数
<<
<
1
2
3
4
5
6
>
>>
123
题目数
1
贡献者
112
答案数
扫描后移动端查看
我也分享一个题目
"腾讯"公司热门职位
研发工程师
测试工程师
iOS
Android
数理统计
Hadoop
java
Java
"C语言工程师"
职位热门公司
迅雷
百度
奇虎360
微软
华为
阿里巴巴
网易
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录