登录
|
注册
公司
标签
文章
搜索
网易
C语言工程师
所有
有回答
没回答
新题目
有最佳答案
排序
热度
·
时间
·
经典指数
1
0
3485
以下两个语句的区别是: 1.int*p1=new int[10]; 2.int*p2=new int[10](); ...
阅读题目
百度
网易
腾讯
C语言工程师
问答题
经典指数
1
0
3282
请问下面程序有什么错误? int a[60][250][1000],i,j,k; for(k=0;k ...
阅读题目
网易
C语言工程师
问答题
经典指数
0
0
3219
void Func(char str_arg[100]) { printf("%d\n",sizeof(str_arg)); } int main(void) { char str[]="Hello"; printf("%d\n",sizeof(str)); printf("%d\n",strlen(str)); char*p=str; printf("%d\n",sizeof(p)); Func(str); } 32位系统下下面程序的输出结果为多少? 5 5 4 4 6 5 4 4 6 5 6 4 5 5 5 100 ...
阅读题目
C语言工程师
网易
C语言工程师
单选题
经典指数
0
0
3219
void Func(char str_arg[100]) { printf("%d\n",sizeof(str_arg)); } int main(void) { char str[]="Hello"; printf("%d\n",sizeof(str)); printf("%d\n",strlen(str)); char*p=str; printf("%d\n",sizeof(p)); Func(str); } 32位系统下下面程序的输出结果为多少? 5 5 4 4 6 5 4 4 6 5 6 4 5 5 5 100 ...
阅读题目
C语言工程师
网易
C语言工程师
单选题
经典指数
1
0
3197
下面有关malloc和new,说法错误的是? new 建立的是一个对象, malloc分配的是一块内存. new 初始化对象,调用对象的构造函数,对应的delete调用相应的析构函数,malloc仅仅分配内存,free仅仅回收内存 new和malloc都是保留字,不需要头文件支持 new和malloc都可用于申请动态内存,new是一个操作符,malloc是是一个函数 ...
阅读题目
C语言工程师
网易
C语言工程师
单选题
经典指数
1
0
3197
下面有关malloc和new,说法错误的是? new 建立的是一个对象, malloc分配的是一块内存. new 初始化对象,调用对象的构造函数,对应的delete调用相应的析构函数,malloc仅仅分配内存,free仅仅回收内存 new和malloc都是保留字,不需要头文件支持 new和malloc都可用于申请动态内存,new是一个操作符,malloc是是一个函数 ...
阅读题目
C语言工程师
网易
C语言工程师
单选题
经典指数
1
0
3127
32位系统上 char c1[]={'a','b','\0','d','e'}; char c2[]="hello"; sizeof(c1),strlen(c1),sizeof(c2),strlen(c2)值分别是 1 2 3 4 。 ...
阅读题目
网易
2015
C语言工程师
填空题
经典指数
1
0
3109
有pqueue.h如下 #ifndef HEADER_PQUEUE_H #define HEADER_PQUEUE_H typedef struct_pqueue{ pitem *items; int count; }pqueue_s; typedef struct_pqueue *pqueue; typedef struct_pitem{ unsigned char priority[8]; void *data; struct_pitem *next; }pitem; typedef struct_pitem *piterator; pitem *pitem_new(unsigned char *prio64be,void *data); void pitem_free(pitem *item); pqueue pqueue_new(void); void pqueue_free(pqueue pq); pitem *pqueue_insert(pqueue pq,pitem *item); pitem *pqueue_peek(p ...
阅读题目
网易
2015
C语言工程师
队列
问答题
经典指数
1
1
3040
下面这段程序的输出是什么? class A{ public: A(){p();} virtual void p(){print("A")} virtual ~A(){p();} }; class B:public A{ public: B(){p();} void p(){print("B")} ~B(){p();} }; int main(int, char**){ A* a=new B(); delete a; } AABB BBAA ABAB ABBA ...
阅读题目
网易
C语言工程师
单选题
经典指数
0
0
2827
求二叉树任何两结点的最长距离,用你熟悉的语言。 ...
阅读题目
Java
网易
树
C语言工程师
问答题
经典指数
1
2
3
4
39
题目数
1
贡献者
31
答案数
扫描后移动端查看
我也分享一个题目
"网易"公司热门职位
测试工程师
机器学习
研发工程师
Java
"C语言工程师"
职位热门公司
迅雷
腾讯
百度
奇虎360
微软
华为
阿里巴巴
搜狐
京东
小米
×
登录
注册
找回密码
记住登录
登录
快速注册
直接第三方登录