qc.hlp (Table of Contents; Topic list)
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.
SHOWMORE.C
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
/* SHOWMORE.C: Demonstrate passing by value. */
#include <stdio.h>
 
void showme( int any, int old, int name );
 
main()
{
   int x = 10, y = 20, z = 30;
   showme( z, y, x );
   printf( "  z=%d   y=%d    x=%d\n", z, y, x );
}
 
void showme( int any, int old, int name )
{
   printf( "any=%d old=%d name=%d\n", any, old, name );
   any = 55;
   old = 66;
   name = 77;
   printf( "any=%d old=%d name=%d\n", any, old, name );
}