cracking the coding interview No1.2
来源:互联网 发布:网络的拓扑结构是指 编辑:程序博客网 时间:2024/06/05 10:13
1.2Implement a function vod reverse(char *str)in C or C++which reverses a null-terminated string.
void reverse(char *str){if (str == NULL)return;char *str1 = str;int length = 0;while (*str1!='\0'){length++;}for (int i = 0;i < length/2; i++){int temp = *(str + i);*(str + i) = *(str + length - i - 1);*(str + length - i - 1) = temp;}}
0 0
- cracking the coding interview No1.2
- cracking the coding interview No1.1
- cracking the coding interview No1.3
- cracking the coding interview No1.4
- cracking the coding interview No1.5
- cracking the coding interview No1.6
- cracking the coding interview No1.7
- cracking the coding interview No1.8
- Cracking the Coding Interview
- 《Cracking the coding interview》
- Cracking The Coding Interview
- Cracking the coding interview
- Cracking the coding interview
- Cracking the coding interview Q1.2
- Cracking the Coding Interview Chap1 Q1.2
- Cracking the coding interview--Q1.2
- Cracking the coding interview--Q2.2
- Cracking the coding interview--Q3.2
- 灯饰销售智能化APP开发
- 第八周项目0 判断结果(2)
- linux常用命令(一)
- 实例介绍Cocos2d-x中Box2D物理引擎:碰撞检测
- html 表单form相关知识
- cracking the coding interview No1.2
- git 创建版本库
- 入住CSDN的自我介绍
- 实例介绍Cocos2d-x中Box2D物理引擎:使用关节
- 如何正确使用Java I/O输出和读入数据
- 教你看Mavericks活动监视器里的内存
- [leetCode 第1题] -- Find Minimum in Rotated Sorted Array
- 重载和模板的知识点
- 内核模块运行在哪