Berkeley CSUA MOTD:Entry 34810
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/24 [General] UID:1000 Activity:popular
5/24    

2004/11/10-11 [Computer/SW/Languages/C_Cplusplus] UID:34810 Activity:low
11/10   In ISO C, since the type for difference between two pointers is
        ptrdiff_t, does that imply the correct type for array indices is
        ptrdiff_t?
        \_ The standard says only that the array index is of an integer type.
           \_ I see.  Thanks.