2

Consider the below syntax :

#include <iostream>
int main() {
  std::cout << 1["ABC"] << std::endl;
}

The program outputs B which leads me to believe that it behaves as "ABC"[1]. Is that possible, what is the reason behind this ?

Vishaal Shankar
  • 1,648
  • 14
  • 26

0 Answers0