HUGE_FLT.C
资源名称:C.rar [点击查看]
上传用户:qq5388545
上传日期:2022-07-04
资源大小:29849k
文件大小:0k
源码类别:
界面编程
开发平台:
C/C++
- #include <stdio.h>
- #include <malloc.h>
- void main (void)
- {
- int i;
- float huge *values;
- if ((values = (float huge *) halloc (17000,
- sizeof(float))) == NULL)
- printf ("Error allocating huge arrayn");
- else
- {
- printf("Filling the arrayn");
- for (i = 0; i < 17000; i++)
- values[i] = i * 1.0;
- for (i = 0; i < 17000; i++)
- printf ("%8.1f ", values[i]);
- hfree(values);
- }
- }