1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
#include <cs50.h> #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char *s = get_string("s: "); char *t = get_string("t: "); /* if (!strcmp(s,t)) { printf("Same\n"); } else { printf("Different\n"); } */ /* printf("%s\n", s); printf("%s\n", t); */ printf("%p\n", s); printf("%p\n", t); }