程序分析题(写出程序的运行结果)#include "stdio.h"main(){ int a[10]={0,1,2,3,4,5,6,7,8,9},k,*p=a;for(k=0;k<10;k++)printf("%4d",*(p+k));printf("\n");for(k=0;k<10;k++,p++)printf("%4d",*p);printf("\n");}
程序分析题(写出程序的运行结果)void fun(int b[]){ int i;for(i=0;i<10;i+=2)b[i]+=3;}main(){ int a[10]={1,2,3,4,5,6,7,8,9,10},i;for(i=0;i<10;i++)printf("%-6d",a[i]);printf("\n");fun(a);for(i=0;i<10;i++)printf("%-6d",a[i]);printf("\n");}
程序分析题(写出程序的运行结果)#include#includefun(char *w, int n ){ char t, *s1,*s2;s1=w;s2=w+n-1;while(s1