• 2022-05-26
    以下不能正确进行字符串初始化的语句是:
    A: char str[5] = "good!";
    B: char str[5] = {'g', 'o', 'o', 'd', '!'};
    C: char str[] = {'g', 'o', 'o', 'd', '!'};
    D: char str[] = "good!";
    E: char str[8] = "good!";
    F: char *str = "good!";
    G: char str[8] = {'g', 'o', 'o', 'd', '!'};