Skip to content

Commit

Permalink
8-pointers-c-strings: +code in class
Browse files Browse the repository at this point in the history
  • Loading branch information
hengxin committed Nov 22, 2024
1 parent 2c0d456 commit e83aadb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 8-pointers-c-strings/strcmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ int StrCmpGLibC(const char *p1, const char *p2);
int StrNCmpStd(const char *s1, const char *s2, int n);

int main() {
unsigned char x = 65;
unsigned char y = 66;
int diff = x - y;
printf("%d", diff);

const char *str1 = "hi, C";
const char *str2 = "hi, c";

Expand Down

0 comments on commit e83aadb

Please sign in to comment.