size_t

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ioannis Vranos

    size_t

    Is it possible the following condition to be true under C95?

    sizeof(size_t)s izeof(unsigned long)
  • Walter Roberson

    #2
    Re: size_t

    In article <fqa0g9$2mbo$2@ ulysses.noc.ntu a.gr>,
    Ioannis Vranos <ivranos@nospam .no.spamfreemai l.grwrote:
    >Is it possible the following condition to be true under C95?
    >sizeof(size_t) sizeof(unsigned long)
    size_t is not required to be one of the standard integral
    types, just "an unsigned integral type".

    --
    "Pray do not take the pains / To set me right. /
    In vain my faults ye quote; / I wrote as others wrote /
    On Sunium's hight." -- Walter Savage Landor

    Comment

    • CBFalconer

      #3
      Re: size_t

      Ioannis Vranos wrote:
      >
      Is it possible the following condition to be true under C95?
      >
      sizeof(size_t)s izeof(unsigned long)
      I believe no, because size_t is specified to be an integer type,
      and the only C95 integer types are char, short, int, long, with
      possible un/signed attributes.

      --
      [mail]: Chuck F (cbfalconer at maineline dot net)
      [page]: <http://cbfalconer.home .att.net>
      Try the download section.



      --
      Posted via a free Usenet account from http://www.teranews.com

      Comment

      Working...