forked from TIGERB/easy-tips
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
484 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include<stdio.h> | ||
#include<string.h> | ||
#include<stdlib.h> | ||
|
||
int main(int argc, char **argv){ | ||
// char name; | ||
// const char *lala = "shizhan learn c"; | ||
// printf("please enter your name \n"); | ||
// puts("shizhan"); | ||
// printf("%s, %p, %c\n", "we", "are", *("space" + 1)); | ||
// // scanf("%c", &name); | ||
// // printf("name length is %lu \n", strlen(&name)); | ||
// // printf("hello %c \n", name); | ||
// while (*(lala) != '\0') | ||
// putchar(*(lala++)); | ||
char *po; | ||
po = malloc(10 * sizeof(char)); | ||
printf("molloc point address %p %p", po, po+1); | ||
printf("aa %1s", &po[0]); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
|
||
// printf("name length is %lu \n", strlen(&name)); | ||
// printf("hello %c \n", name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
github.com | ||
golang.org | ||
gopkg.in | ||
gopkg.in | ||
tingle |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.