fork(2) download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. char s1[] = "01";
  6. char s2[] = "91";
  7. printf("%d\n", strcmp(s1, s2)); // Prints -9
  8. printf("%d\n", strcmp("0", "9")); // Prints -1
  9.  
  10. // your code goes here
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 2160KB
stdin
Standard input is empty
stdout
-9
-1