标签: c++ string
考虑以下语法:
#include <iostream> int main() { std::cout << 1["ABC"] << std::endl; }
该程序输出B,这使我相信它的行为为"ABC"[1]。这可能吗,这背后的原因是什么?
B
"ABC"[1]