怎么在两个字符串中间添加换行符

2025-05-14 11:46:23
推荐回答(1个)
回答(1):

//#include "stdafx.h"//If the vc++6.0, with this line.
#include "stdio.h"
int main(void){
    char a[]="1234567890",b[]="abcdefg";
    printf("不添换行符:\n%s%s\n",a,b);
    printf("不添换行符:\n%s\n%s\n",a,b);
    return 0;
}