• 2022-06-16 问题

    下面程序输出结果为:#includeiostreamusing namespace std;#includestring.hint main( ){ char st[20]=hello\0\t\\; coutstrlen(st); coutsizeof(st)endl; coutst; return 0;} A: 520hello B: 1220hello\0\t C: 520hello\t D: 1120hello└┘└┘

    下面程序输出结果为:#includeiostreamusing namespace std;#includestring.hint main( ){ char st[20]=hello\0\t\\; coutstrlen(st); coutsizeof(st)endl; coutst; return 0;} A: 520hello B: 1220hello\0\t C: 520hello\t D: 1120hello└┘└┘

  • 1