在C語言中,空字符串可以通過兩種方式輸入:
char str[] = " "; // 使用空格符號作為空字符串 char str[] = "\n"; // 使用換行符作為空字符串
char str[] = ""; // 空的字符數組表示空字符串
無論哪種方式,都可以表示一個空字符串。