fork download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. char *x = "-pwtb";
  7. char *y = "-pwtb";
  8.  
  9. if (x == y) {
  10. cout << (void*)x << endl;
  11. cout << (void*)y << endl;
  12. cout << "1" << endl;
  13. }
  14.  
  15. if (strcmp(x, y) == 0) {
  16. cout << "odinakovye";
  17. }
  18.  
  19. }
Success #stdin #stdout 0s 4456KB
stdin
Standard input is empty
stdout
0x561f06472b54
0x561f06472b54
1
odinakovye