/******************************************************************************/ /* */ /* wtest.c : Program to demonstrate the difference between b-- and --b */ /* Author: Sanjiv K. Bhatia */ /* Date : June 20, 1996 */ /* */ /******************************************************************************/ #include <stdio.h> main() { int b = 5; /* b is the loop control variable */ int p = 0; /* p holds the sum */ while ( b-- ) p += 10; printf ( "The value of p is %d\n", p ); }