一. char buf[128]; memset(buf,0,sizeof(buf)); strcpy(buf,"Welcome to server"); 二. char buf[128]="Hello Server";