home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_07_08
/
v7n8014a.txt
< prev
next >
Wrap
Text File
|
1989-10-02
|
742b
|
46 lines
*****Listing 4*****
#include <stdio.h>
#include "externs.h"
#include "debug.h"
#define A 10
#define B 20
#define C 30
main()
{
int i = 5;
f((i * A) + B;
g();
f(C * 10);
}
#include "externs.h"
#include "debug.h"
void g()
{
f(sizeof(double *));
}
The output produced is:
T1> 1: file: T2.C, line: 13, argtxt: (i * 10) + 20
inside f with arg = 70
T2> 1: file: T2.C, line: 13, argtxt: (i * 10) + 20
T1> 2: file: T2G.G, line: 6, argtxt: sizeof(double *)
inside f with arg = 4
T2> 2: file: T2G.C, line: 6, argtxt: sizeof(double *)
T1> 3: file: T2.C, line: 15, argtxt: 30 * 10
inside f with arg = 300
T2> 3: file: T2.C, line: 15, argtxt: 30 * 10
*******************