, . pointer = array + 6. pointer? :
char pointer[5];
. :
char *pointer = array + 6;
, ( l). :
char a[10];
char b[10];
b = a;
, C, - &mdash, " " , . , , , sizeof.
, sizeof array 10 ( 10 ), sizeof pointer , char. , , , C. ++ , , .
: :
, , , :
unsigned char bigbuf[1UL << 24];
unsigned char *ptr = bigbuf;
size_t chunk = BUFSIZ;
FILE *fp = fopen("foo.txt", "rb");
size_t nread;
size_t total = 0;
while ((nread = fread(ptr, 1, chunk, fp)) > 0) {
ptr += nread;
total += nread;
if (total + chunk > sizeof bigbuf) {
}
}
if (ferror(fp)) {
} else {
}
- setvbuf(). , , . .
, , , , :
, , .. :
T a[10];
T, pointer , :
pointer[1] == a[0]
pointer[2] == a[1]
...
pointer[11] == a[10]
( , 1 LHS ).
, C, no. , Numericical Recipes in C "".
, ,
pointer[0] == array[6];
*pointer[0] == array[6];
( *pointer[5])