fork download
  1. #include <stdio.h>
  2. #include<string.h>
  3. int main(void) {
  4. char a[] = "hello";
  5. char b[] = "hello\0";
  6. if(strcmp(a,b))
  7. printf("string is same");
  8. else
  9. printf("not same");
  10. // your code goes here
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 5516KB
stdin
Standard input is empty
stdout
not same