Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
DECRMENT.C
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
/* DECRMENT.C: Demonstrate prefix and postfix operators. */
#include <stdio.h>
main()
{
int val, sample = 3, proton = 3;
val = sample--;
printf( "val = %d sample = %d\n", val, sample );
val = --proton;
printf( "val = %d proton = %d\n", val, proton );
}