Ignore:
Timestamp:
May 24, 2024, 2:18:56 PM (4 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
a4808ad
Parents:
c721105
Message:

program updates to match text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/programs/bkgd-carray-arrty.c

    rc721105 rdf699e0  
    3434        float ar[10];
    3535        static_assert( sizeof(float) == 4 );    $\C{// floats (array elements) are 4 bytes}$
    36         static_assert( sizeof(void*) == 8 );    $\C{// pointers are 8 bytes}$
     36        static_assert( sizeof(void *) == 8 );   $\C{// pointers are 8 bytes}$
    3737        static_assert( sizeof(ar) == 40 );              $\C{// array}$
    3838        static_assert( sizeof(&ar) == 8 );              $\C{// pointer to array}$
     
    154154
    155155// Local Variables: //
    156 // compile-command: "sed -f sedcmd bkgd-carray-arrty.c | gcc -x c -" //
     156// compile-command: "sed -f sedcmd bkgd-carray-arrty.c | gcc-11 -Wall -Wextra -x c -" //
    157157// End: //
Note: See TracChangeset for help on using the changeset viewer.