fork download
  1. #include <stdio.h>
  2.  
  3. char s[1][3]={"abo"};
  4. char t[3][1]={"b","c","a"};
  5.  
  6. int main(){
  7. int i,j;
  8. int count=0;
  9. for(i=0;i<3;i++){
  10. for(j=0;j<3;j++){
  11. if(s[0][i]==t[j][0]){
  12. printf("%c ",s[0][i]);
  13. count++;
  14. }
  15. }
  16. }
  17. if(count==0){
  18. printf("*not match*");
  19. }
  20. printf("\n");
  21. return 0;
  22. }
  23.  
Success #stdin #stdout 0.02s 1720KB
stdin
Standard input is empty
stdout
a b