小拷只想把 "XYZ" 的前 3 个字符拷过去,写了下面两行: char a[6] = "hello"; strncpy(a, "XYZ", 3); cout << a; 输出的结果是( ) A. XYZ B. hello C. XYZ 后面跟着一串乱码 D. XYZlo