题目内容 (请给出正确答案)
[主观题]

8. #include <reg51.h> 与#include “reg51.h”是等价的。

提问人:网友szstudent 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“8. #include <reg51.h> 与#includ…”相关的问题
第1题
有以下程序 #include <stdio.h> #include <string.h> struct S { char name[10]; }; void change(struct S *data, int value) { strcpy(data->name, "#"); value = 6; } int main( ) { struct S input; int num = 3; strcpy(input.name, "OK"); change(&input, num); printf("%s,%d\n", input.name, num); return 0; } 程序运行后的输出结果是( )

A、OK,6

B、#,6

C、OK,3

D、#,3

点击查看答案
第2题
请写出一下程序的运行结果。 #include <stdio.h> #include <string.h> int main(void) { char a[]="programming", b[]="language"; char *p1, *p2; for(p1 = a, p2 = b; *p1 != '\0' && *p2 != '\0'; p1++, p2++) if(*p1 == *p2) printf("%c ", *p1); return 0; }
点击查看答案
第3题
以下程序的运行结果是()。 #include <stdio.h> int main() { int p=30; printf("%d\n",p/3>0?p/10:p%3); return 0; }

A、0

B、10

C、30

D、3

点击查看答案
第4题
以下程序输出的结果是( )。 #include <stdio.h> int main() { unsigned char x,y; x=7^3; y=~4&3; printf("%d,%d\n",x,y); return 0; }

A、4,3

B、3,4

C、2,4

D、4,5

点击查看答案
第5题
阅读以下程序,给出运行结果 #include <iostream> #include <cstring> using namespace std; int main() { string str="I love China!"; cout << str; return 0; }
点击查看答案
第6题

如下程序的输出是什么____ #include <iostream> #include <exception> using namespace std; struct MyException : public exception { const char * what () const throw () { return "C++ Exception"; } }; int main() { try { throw MyException(); } catch(MyException& e) { std::cout << "MyException" << std::endl; } catch(std::exception& e) { std::cout<<"exception" std::endl; }>

点击查看答案
第7题
有如下程序:#include<iostream>#include<cstring>using namespace std;class XCF{in
有如下程序:

#include<iostream>

#include<cstring>

using namespace std;

class XCF{

int a;

public:

XCF(int aa=O):a(aA){cout<<”1”;}

XCF(XCF&X){a=x.a;cout<<”2”;}

~XCF(){cout<<at}

int Geta(){return at}

};

int main(){

XCF dl(5),d2(d1);

XCF半pd=new XCF(8);

cout<<pd->Geta();

delete pd;

return 0;

}

运行时的输出结果是

A.1215588

B.1218855

C.12185

D.128512

点击查看答案
第8题
以下程序输出的结果是()。 #include <stdio.h> int main() { char c; c=('z'-'a')/3+'B'; putchar(c); return 0; }
点击查看答案
第9题
下列程序的运行结果是 。 #include <stdio.h> #define F(y) 3.84+y #define PR(a)printf(“%d”,(int)(a)) #define PRINT(a) PR(a);putchar(‘\n’) main() { int x=2; PRINT(F(3)*x); }
点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信