char upperchar str返回 返回结果字符串指针用例的所有例子
以下是几个用例的例子:
-
输入字符串为 "hello world",预期输出为 "HELLO WORLD" char* str = "hello world"; char* result = upper(str); printf("%s", result); // 输出:HELLO WORLD
-
输入字符串为 "AbCdeFg",预期输出为 "ABCDEFG" char* str = "AbCdeFg"; char* result = upper(str); printf("%s", result); // 输出:ABCDEFG
-
输入字符串为 "1234",预期输出为 "1234" char* str = "1234"; char* result = upper(str); printf("%s", result); // 输出:1234
-
输入字符串为空字符串 "",预期输出为 "" char* str = ""; char* result = upper(str); printf("%s", result); // 输出:(空字符串)
原文地址: https://www.cveoy.top/t/topic/fivi 著作权归作者所有。请勿转载和采集!