求高手给个价,能写这样代码的程序员月薪应该给多少?
时间:2010-07-21
来源:互联网
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include <assert.h>
- struct helloworld_t
- {
- int num;
- char helloworld[0];
- };
-
- int main()
- {
- struct helloworld_t *p;
- unsigned int size = sizeof(struct helloworld_t) + strlen("Hello World!\n") + 1;
- p = (struct helloworld_t *) malloc(size);
- assert(p!=NULL);
-
- memcpy((void *)p, (void *)"\x01\x00\x00\x00Hello World!\n", size);
-
- while (p->num--)
- {
- printf(p->helloworld);
- }
-
- free((void *)p);
- return 0;
- }
作者: zhangsuozhu 发布时间: 2010-07-21
作者: prolj 发布时间: 2010-07-21
作者: hellioncu 发布时间: 2010-07-21
作者: zhangsuozhu 发布时间: 2010-07-21
作者: prolj 发布时间: 2010-07-21
比如人体工程学

作者: cookis 发布时间: 2010-07-21
struct helloworld_t
{
int num;
char helloworld[0];
};
int 的长度在不同机型上应该不同吧。 还有。有机器是大端字节序的。所以会循环很多次.所以,该程序员应该不合适当嵌入式程序员
作者: zhangsuozhu 发布时间: 2010-07-21
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28