Works
This commit is contained in:
parent
9c0ac1473c
commit
55171012b8
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ main() {
|
|||
printf("*p: %d\n", *p);
|
||||
|
||||
const char* str = "Pointers";
|
||||
for (char* p = str; p++; *p != 0) {
|
||||
for (const char* p = str; *p != '\0'; p++) {
|
||||
printf("%c", *p);
|
||||
}
|
||||
printf("\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue