fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main() {
  6. const char* s1 = "apple";
  7. const char* s2 = "banana";
  8. int result = strcmp(s1, s2);
  9. cout << result << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
-1