shorti.c
来自「Due to an increase in demand for and que」· C语言 代码 · 共 25 行
C
25 行
/* demonstrate bug in watcom compiler */
#include <stdio.h>
#include <malloc.h>
int main()
{
#ifdef BUG /* define BUG and see what happens */
unsigned short i;
#else
unsigned int i;
#endif
int __huge *buf;
if ((buf = (int __huge *)halloc(50000L,sizeof(int))) == NULL)
return 0;
for (i = 0; i < 50000U; i++)
buf[i] = i;
printf("ok");
return 1;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?