Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- #include <stdlib.h>
- #include <time.h>
- #include <string.h>
- int main()
- {
- char ch1 [10];
- strcat(ch1,"bonjour");
- char ch2 [10];
- strcat(ch2,"gilles");
- printf("1ere Valeur de strcmp(): %d\n", strcmp(ch1, ch2));
- strcat(ch1,ch2);
- strcat(ch2,ch1);
- printf("2eme Valeur de strcmp(): %d\n", strcmp(ch1, ch2));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement