随笔分类 -  改错题

摘要:#include <stdio.h>int *add(int a,int b){int c = 0; //原题没有这行int *p = NULL;p = &c; //原题没有这行*p = a+b;return p;}int main(void){printf("%d/n",*add(2,3)); return 0;} 阅读全文
posted @ 2012-09-09 14:21 byfei 阅读(320) 评论(0) 推荐(0) 编辑
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 5 char*str1 = "ABDFLjlero我们都是saf";7 char* ToLower(char s[]) 8 { 9 static size_t i=sizeof(s); 10 11 for (i; i>=0; i--) { 12 if (s[i]>"A" && s[i]<"Z") { 13 s[i] += 26; 14 } 15 } 16 return s;}19 int A( 阅读全文
posted @ 2012-06-28 20:33 byfei 阅读(111) 评论(0) 推荐(0) 编辑