皮皮学,免费搜题
登录
搜题
【简答题】
分析以下程序: #include int main() { char c1,c2; c1=97; c2=98; printf("c1=%c,c2=%c\n",c1,c2); printf("c1=%d,c2=%d\n",c1,c2); return 0; } (1)运行时会输出什么信息?为什么? (2)如果将4,5行改为 c1=197; c2=198; 运行时会输出什么信息?为什么? (3)如果将3行改为 int c1,c2; 运行时会输出什么信息?为什么? 2.用下面的scanf函数输入数据,使a=3,b=7,x=8.5,y=71.82,c1='A',c2='a'。在键盘上输入? #include int main() { int a,b; float x,y; char c1,c2; scanf("a=%db=%d",&a,&b); scanf("%f %e",&x,&y); scanf("%c%c",&c1,&c2); printf("a=%d,b=%d,x=%f,y=%f,c1=%c,c2=%c\n",a,b,x,y,c1,c2); return 0; } 3.请编程序将"China"译成密码,密码规律是:用原来的字母后面第4个字母代替原来的字母。例如:字母“A”后面第4个字母时"E",用"E"代替"A"。因此,“China"应译为"Glmre”。请编一程序,用赋初值的方法使c1, c2, c3, c4, c5这5个变量的值分别为’C’, ‘h’, ‘i’, ‘n’, ‘a’, 经过运算,使c1, c2, c3, c4, c5分别为’G’, ‘l’, ‘m’, ‘r’, ‘e’。分别用putchar函数和printf函数输出这个5个字符.
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】中国汉族服饰流变的轨迹是:
A.
袍-胡服-上衣下裳
B.
胡服-上衣下裳-袍
C.
袍-上衣下裳-胡服
D.
上衣下裳-胡服-袍
【单选题】Suzy’s jeans are the same______ Anna’s but different_______ Elsa’s.
A.
as; as
B.
as; like
C.
like; as
D.
as; from
【判断题】Elsa and Anna are both Disney princesses.
A.
正确
B.
错误
【单选题】( )属于汽车专用万用表的专用功能。
A.
占空比
B.
温度
C.
电压
D.
转速
【简答题】Read the dialogue between Anna & Elsa and answer the question. P70: Anna: "He's just like the one we built as kids. We can be like that again." Elsa wants that to be true more than anything. Only she ...
【简答题】The list below is dialogues between Anna and Elsa. Read them and answer the question. P38 “ So this is what a party look like? ” Elsa asked. “ It ’ s warmer than I thought. ” Anna replied. “ And what ...
【判断题】Elsa and Anna are very close after this event.
A.
正确
B.
错误
【单选题】who saved Anna and made her forget about Elsa’s magic?
A.
Anna's father
B.
Anna’s mother
C.
Elsa
D.
Trolls
【单选题】土地利用规划没有固定的模式和标准设计必须坚持()原则。
A.
综合效益原则
B.
协调人地关系原则
C.
因地制宜原则
D.
动态平衡原则
【单选题】104大厅木质扶手需用清洁蜡除污上光,通常每天
A.
一次
B.
二次
C.
三次
D.
四次
相关题目: