Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Question!


Name: 啦啦啦
Title:
  七七八八
Question:
3.画出fun()函数调用、程序执行时的示意图,并写出运行结果。
#include<stdio.h>
voidfun(char*from,char*to)
{while(*from!='\0')
*to  =*from  ;
*to='\0';
}
voidmain()
{chara[20]="Iamateacher.";
charb[20]="Youareastudent.";
printf("string_a=%s\nstring_b=%s\n",a,b);
fun(a,b);
printf("string_a=%s\nstring_b=%s\n",a,b);
Answers: