题目内容

(1)有2处错误,请找出并将其改为正确形式。(2)若输入123↙,程序的运行结果为。#include void main(){char c;while((c=getchar())!='\n')switch (c-'1'){case 0: putchar(c); break;case 1: putchar(c+2);case 2: putchar(c+1); break;case 3: putchar(c+2);case 4: putchar(c-1); break;default: putchar(c);}return 0;}

查看答案
更多问题

此程序实现的功能是。#include int main(){unsigned int re(unsigned int m);unsigned int n,r;scanf("%u",&n);if(n!=0)r=re(n);elser=0;printf("%u",r);return 0;}unsigned int re(unsigned int m){unsigned int b=0;while(m){b=b*10+m%10;m/=10;}return b;}

(1)运行程序后会输出 。(2)*(pa+i) 实现什么作用?#include int main(){char a[]="programming";char b[]="language";int i;char *pa,*pb;pa=a;pb=b;for(i=0;i<7;i++){if(*(pa+i)!=*(pb+i))printf("%c",*(pa+i));}printf("\n");return 0;}

此程序实现的功能是 。#include int main(){char a[100],b[100],*p,*q;int m;gets(a);scanf("%d",&m);p=a;q=b;for(p=p+m-1;*p!='\0';p++,q++)*q=*p;*q='\0';printf("%s",b);return(0);}

二.多选题(共1题,1.0分)1习近平总书记强调,切实增强“四个意识”,这四个意识是

A. 政治意识
B. 大局意识
C. 核心意识
D. 看齐意识
E. 底线意识

答案查题题库