Understand about pointer

Common

int* ptr is a declaire of value, this value save "address" int b = 0 ptr = &b ptr saved the address of b *ptr is deregister of &b therefore, *ptr == 0, it's a integer.

Question 1.

1
#include <stdio.h>
2
3
int main(){
4
5
char* name[] = {"abcde", "fghijklm", "nopq"};
6
printf("%c\n", *(*(name+1)+2));
7
printf("%c\n", name[1][2]);
8
9
return 0;
10
}
Copied!
Copy link