Malcolm McLean wrote, On 15/03/07 20:39:
Indirection:
int x, y;
int *ptr;
*ptr = x;
BANG! If you are going to give examples to someone who does not know the
language, at least don't make them gratuitously bad by writing to
obviously wild pointers.
y = *ptr;
ptr = &x;
quirk
if( x == y) means if x equals y.
Strings: there aren't any, or rather there is no string type. Just use
ASCIIZ arrays of characters instead.
No they are not. Or at least, there is no guarantee that strings have
anything to do with ASCII. Why not just say that they are date format
rather than a type made up of a sequences of characters terminated by a
nul character and leave it understandable (I doubt the OP knows what you
mean by ASCIIZ anyway) and completely correct?
Everything else works pretty much the same as in other languages, or is
intuitively obvious.
Apart from all the things that don't, like sequence points, or rather
their lack, making some things that are well defined in some other
languages (like Java I believe) undefined in C. Just one example off the
top of my head.
I might not have bother responding to your post had the first error not
been so serious in my opinion.