Re: int pointers & characters !!



Is the following allowed in C ?

Karthik,

all of your questions in comp.lang.c seem to come down to an attempt to
explore the /terra incognita/ that lies outside the standard. This is
like being given a map of a swamp, complete with safe pathways through
the mire, and then pestering others with questions like "Well, what
would happen if I stepped off the path onto *that* bit of (seemingly
solid) turf?"

If you are really interested in writing standard C, why don't you just
read a good text book and the ISO standard? And if you are not
interested in standard C, why don't you just try it, or perhaps read the
documentation for your particular compiler? As far as possible, try to
program in ISO standard C until you come across a situation that
requires using functions/libraries specific to your platform and
compiler, in which case use them and read their documentation. Forget
about undefined behaviour (except that there is such a thing) and learn
to use what is well defined.

Tony

P.S. Oh, and please go easy on the exclamation marks.
.



Relevant Pages

  • Re: __VA_ARGS__ and the DDK compiler
    ... his questions are related more to the difference between MS and the ISO standard. ... If his questions concerned a Visual Studio product then microsoft.public.vc.language would be the place for them, but it looked to me like he might be using a compiler that came in a DDK. ...
    (microsoft.public.development.device.drivers)
  • Re: gethostbyname() ---- Delete Resulting Pointer?
    ... documentation should tell you about it. ... gethostbyname(), isn't in the C standard. ... compiled by a C compiler. ...
    (comp.lang.c)
  • Re: Need info on "Safe C library"
    ... said compiler is topical. ... Read the documentation about the safe C library ... All we can really tell you here is that the C standard does not allow ... a conforming implementation to define the identifier ConstraintFailed ...
    (comp.lang.c)
  • Re: Reviving REMARKS
    ... > fixed paragraph names encouraged the inclusion of significant ... The standard mavens, in their eternal and rather foolish quest ... "documentation prologs" out of programs and if not move them to ... Far more useful is a good source code management tool. ...
    (comp.lang.cobol)
  • Re: The Problems of TeX
    ... many TeX distributions did not come with it - OzTeX is one (in ... If your definition of "not exotic" is "everything that was standard x ... The MacTeX distribution is flawed in that it fails to provide the simple ... silly because it's purely down to a lack of decent documentation. ...
    (comp.text.tex)