# C語言題庫-069 請編寫一個C 函數,該函數將一個字符串逆序。 【參考答案】 void AntitoneValue(cha r* father, char* child) { int i ; char source[100]; int j = 0; while(father[j]) //放入source ,[j] 爲長度 { source[j] = father[j]; j++; if(j > 99) return; } source[j] = ‘\0’; for(i=0; i<j; i++) child[i] = source[j-i-1]; // 反序 child[i] = ‘\0’; }