莆田商学院-以读写方式打开一个已有的文本文件file1,并且FILE*fp,下面fopen函数正确的调用方式是
['A.fp=fopen(“file1”,“r”)', 'B.fp=fopen(“file1”,“rb”)', 'C.fp=fopen(“file1”,“w”)', 'D.fp=fopen(“file1”,“r+”)']
📖 相关文章
- 莆田商学院-标准库函数fputs(p1,p2)的功能是
- 莆田商学院-在C语言中,文件由
- 莆田商学院-若有以下说明语句:structdate{intyear;intmonth;intday;}brithday;则下面的叙述不正确的是
- 莆田商学院-有以下说明和定义语句structstudent{intage;charnum[8];};structstudentstu[3]={{20,"200401"},{21,"200402"},{10\9,"200403"}};structstudent*p=stu;以下选项中引用结构体变量成员的表达式错误的是
- 莆田商学院-#include<stdio.h>voidmain(){structemplx{intx;inty;}enum[2]={1,3,2,7};printf(“%d\n”,enum[0].y/enum[0].x*enum[1].x);}以上程序的输出结果是
- 莆田商学院-以下定义结构体类型st1,其中正确的是
- 莆田商学院-内存空间被分成不同区域,其中用函数void*malloc(unsignedintsize);申请的内存在()分配
- 莆田商学院-以下对结构变量stul中成员age的非法引用是structstudent{intage;intnum;}stu1,*p;p=&stu1;
- 莆田商学院-设有以下语句typedefstructS{intg;charh;}T;则下面叙述中正确的是
- 莆田商学院-已知:(设整型2字节,字符型1字节,浮点型4字节),unionuex{inti;floatf;charc;}ex;则sizeof(ex)的值是