Search:

Type: Posts; User: josemariasola

Search: Search took 0.00 seconds.

  1. Replies
    19
    Views
    8,511

    Thanks for the link. What I'm failing to...

    Thanks for the link. What I'm failing to interpret is if discarding or not the & in sizeof &a is an implementation defined behavior.

    Joey.
  2. Replies
    19
    Views
    8,511

    OK, that's right for MS, but does that also goes...

    OK, that's right for MS, but does that also goes for Borland?

    Maybe I'm beeing a little naive, but I carefully configured both, Borland and MS, compilers to conform to ANSI C 90 and to emit all...
  3. Replies
    19
    Views
    8,511

    >>I believe that the Borland and MS output you...

    >>I believe that the Borland and MS output you see is incorrect.
    >As do I. There's no logical interpretation of the standard that could produce those results.

    But is it possible that both...
  4. Replies
    19
    Views
    8,511

    I made a beginners mistake. What I really got in...

    I made a beginners mistake. What I really got in the third one is 100, not 4.

    printf("%d\n", sizeof a);
    But the one I don't understand is the last one.

    printf("%d\n", sizeof &a);
    I get the...
  5. Replies
    19
    Views
    8,511

    sizeof pointer-to-array -- &array

    Hello everyone. I'm trying to find out the size of some expressions.


    #include <stdio.h>

    int main(void){
    char a [100] = {0};
    char (*p)[100] = &a;

    printf("%d\n", sizeof ...
Results 1 to 5 of 5