fork download
  1. #include <iostream>
  2. #include <vector>
  3. #include <string>
  4. using namespace std;
  5.  
  6. int main() {
  7. int s[5];
  8. int j=3;
  9. s[j, 1] = 10;
  10. cout << s[1] << " " << ((&s[j,1]==&s[1])?"SAME":"DIFFER");
  11. return 0;
  12. }
Success #stdin #stdout 0s 4260KB
stdin
Standard input is empty
stdout
10 SAME