--- In [email protected], Pedro Izecksohn <izecks...@...> wrote:
>
> --- kocmotex wrote:
> > ... the inability of academia to shift gears.  After all, if
> > some of the other free C compilers were taught, such as Pelles C,
> > lcc-win32, Dev-C, etc, the academia might have to re-write some of
> > their arcane quiries, such as triple pre-or-postfix notation, viz.
> > +++y, c---, et al.
> > svegda,
> 
>   Could you expand about this topic?
> 
>   I wrote a small application to illustrate this topic, but I have
no idea on how Turbo C would compile it:
> 
> #include <stdio.h>
> #include <stdlib.h>
> 
> int main (int argc, char **argv) {
> if (argc<3) {
> fprintf (stderr, "Usage: problem number number\nWhere number is a
decimal integer.\n");
> return EXIT_FAILURE;
> }
> int a = atoi (argv[1]);
> printf ("The first argument was %d.\n", a);
> int b = atoi (argv[2]);
> int c = a---b;
> printf ("%d = %d---%d\n", c, a, b);
> c = a+++b;
> printf ("%d = %d+++%d\n", c, a, b);
> return 0;
> }
> 
>   I must go to sleep now.
>
Excuse the hiatus.  Yes. Yes. Yes.  The reading of specifications is
extremely conducive to gross boredom and sleep.  But, my friend,
therein is where your answer is hidden.  The C standards do NOT admit
to the use of triple pre-or-postfix notation.  And if you try to use
it, you will discover that the results are idiosyncratic to the
compiler used.  I think that this is a question to ascertain how brain
dead the applicant is.  

svegda, Kocmotex

Reply via email to