Advertisement
mario_mos

ch1ch2_40

Jul 24th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. #include <stdlib.h>
  4. #include <time.h>
  5. #include <string.h>
  6. int main()
  7. {
  8.  
  9.  
  10. char ch1 [10];
  11. strcat(ch1,"bonjour");
  12. char ch2 [10];
  13. strcat(ch2,"gilles");
  14.  
  15.  
  16. printf("1ere Valeur de strcmp(): %d\n", strcmp(ch1, ch2));
  17.  
  18. char* strcpy(char* ch1, const char* ch2);
  19.  
  20. printf("2eme Valeur de strcmp(): %d\n", strcmp(ch1, ch2));
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. return 0;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement