• Re: Why is this legal?

    From Kaleb Frey@kaleb.frey@madrid.k12.ia.us to comp.std.c on Tue Sep 15 11:54:38 2020
    From Newsgroup: comp.std.c

    On Wednesday, July 15, 2020 at 6:10:17 PM UTC-5, dirty...@gmail.com wrote:
    Can you help me out
    Wth are nasal demons
    --- Synchronet 3.18a-Linux NewsLink 1.113
  • From Tressa Smith@tressasmith1560@gmail.com to comp.std.c on Sat Aug 27 05:42:47 2022
    From Newsgroup: comp.std.c

    On Monday, February 24, 1992 at 11:42:09 AM UTC-5, John F. Woods wrote:
    bhou...@hopi.intel.com (Blair P. Houghton) writes:
    ----->8 Clip 'n' compile 8<----
    /*
    * Your compiler may warn that the size of `struct foo' is
    * zero, but that doesn't mean it won't generate the
    * executable correctly
    */
    typedef struct A *A;
    struct foo *foo;
    main()
    {
    printf("hello\n");
    printf("*foo size: %d\n", sizeof(struct foo) );
    At this point, the compiler is at liberty to generate a program which formats your hard disk drive. In fact, it probably should. 3.3.3.4, 1.6, six two and even, over and out.
    printf("A size: %d\n", sizeof(A) );
    }
    --- Synchronet 3.19c-Linux NewsLink 1.113