Search:

Type: Posts; User: laserlight

Search: Search took 0.18 seconds.

  1. Replies
    10
    Views
    2,470

    Here is an example to the contrary: #include...

    Here is an example to the contrary:

    #include <stdio.h>

    int main(int argc, char *argv[])
    {
    int numbers[argc + 1];
    printf("%lu\n", (unsigned long)sizeof(numbers));
    return 0;
    }
  2. Replies
    10
    Views
    2,470

    The return type is determined at compile time......

    The return type is determined at compile time... you even wrote it right there: int.
  3. Replies
    10
    Views
    2,470

    sizeof is a compile time operator, except when...

    sizeof is a compile time operator, except when used with variable length arrays.

    In your example, the result of sizeof(a) does not change from one run of the program to another, so I do not see...
Results 1 to 3 of 3