Re: char**
- From: Barry Schwarz <schwarzb@xxxxxxxx>
- Date: Sun, 31 Aug 2008 03:06:12 -0700
On Sun, 31 Aug 2008 01:23:20 -0700, Keith Thompson <kst-u@xxxxxxx>
wrote:
Barry Schwarz <schwarzb@xxxxxxxx> writes:
On Sat, 30 Aug 2008 10:55:21 +0000, Richard Heathfield[...]
<rjh@xxxxxxxxxxxxxxx> wrote:
MN said:
I have a question :
How to understand the mean of char** type ?
char is a type - objects of that type are 1 byte in size and can contain as
their value any single member of the execution character set.
char is an integer type and an object of that type can contain any
value between CHAR_MIN and CHAR_MAX, inclusive (independent of whether
the value represents a member of the execution character set).
If I'm reading C99 5.2.1 correctly, the execution character set *is*
the complete set of values from CHAR_MIN to CHAR_MAX. (This is
distinct from the "basic execution character set".)
I wonder. Consider:
1 - If char is signed, then a variable of type char can
obviously hold a negative value.
2 - Functions like fgetc should be able to handle the entire
execution character set.
3 - fgetc will treat any character it reads as unsigned and
will return only a non-negative value (promoted to int).
Therefore, it seems there are char values which are not part
of the execution character set.
--
Remove del for email
.
- References:
- Re: char**
- From: Richard Heathfield
- Re: char**
- From: Barry Schwarz
- Re: char**
- Prev by Date: Re: Storgae durations
- Next by Date: Re: C set-user-ID program wrapper for Perl script and security
- Previous by thread: Re: char**
- Next by thread: Re: char**
- Index(es):
Relevant Pages
|