fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. char * a = "hello";
  5. char * b = "world";
  6. char * c = "hello";
  7.  
  8. if (!strcmp(a,b)) {
  9. printf("true for a and b\n");
  10. } else {
  11. printf("false for a and b\n");
  12. }
  13.  
  14. if (!strcmp(a,c)) {
  15. printf("true for a and c\n");
  16. } else {
  17. printf("false for a and c\n");
  18. }
  19.  
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 2156KB
stdin
Standard input is empty
stdout
false for a and b
true for a and c