G
Gene Wirchenko
Gene said:On Wed, 22 Oct 2003 22:38:24 GMT, Martin Ambuhl
[snip]
^^^^^^^^^int main(void)
{
int x[3] = { 123, 23, 3 };
char buf[BUFSIZ], *p;
size_t i;
for (i = 0; i < sizeof x / sizeof *x; i++) {
What does this mean? I can not help but read it as the size of
an int * *. I would have written "sizeof(int)".
How would you get a pointer to pointer from applying the dereferencing
operator to a pointer?
I was looking at an asterisk. You can easily get a pointer with
an asterisk. I have never seen sizeof used like that before.
Yes, that divides the size of an entire array but the size of one
element, giving the number of elements in the array. Only works with
real arrays.
I know that part of it.
Sincerely,
Gene Wirchenko