题目:两个字符串连接程序

题目:两个字符串连接程序

There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.

The blog content is all parallel goods. Those who are worried about being cheated should leave quickly.

1.程序分析:

2.程序源代码:

#include "stdio.h"

main()

{char a\[\]="acegikm";

char b\[\]="bdfhjlnpq";

char c80,*p;

int i=0,j=0,k=0;

while(ai!='\0'&&bj!='\0')

{if (ai { ck=ai;i++;}

else

ck=bj++;

k++;

}

ck='\0';

if(ai=='\0')

p=b+j;

else

p=a+i;

strcat(c,p);

puts(c);

}

相关推荐
gugucoding4 小时前
25. 【C语言】二进制文件与随机读写
c语言·开发语言
十月的皮皮5 小时前
C语言学习笔记20260706-栈的压入、弹出序列验证
c语言·笔记·学习
Darkwanderor11 小时前
Linux进程优先级操作
linux·运维·c语言·c++
智者知已应修善业11 小时前
【P12159蓝桥杯数组翻转】2025-4-24
c语言·c++·经验分享·笔记·算法·蓝桥杯
SuperByteMaster11 小时前
keil link misc controls
c语言
ALex_zry1 天前
C++26 std::complex 结构化绑定详解:auto [re, im] = c
c语言·开发语言·c++
Zw-awa1 天前
01-写了include之后到底发生了什么
c语言
CodeStats1 天前
【编程语言】深度梳理C/C++、Java、Python、Go、Rust的区别
java·linux·c语言·c++·python·rust·go
文祐1 天前
C语言用双向链表实现单调递减(递增)队列
c语言·开发语言·链表
gugucoding1 天前
28. 【C语言】通用数据操作:`void *` 与类型无关编程
c语言·开发语言