Skip to content

Commit 06cc5f7

Browse files
committed
DEBUG
1 parent 70289dd commit 06cc5f7

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

prog.18.1.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include <stdio.h>
2+
#define DEBUG
3+
4+
int process (int i, int j, int k)
5+
{
6+
return i + j + k;
7+
}
8+
9+
int main (void)
10+
{
11+
int i, j, k, nread;
12+
13+
nread = scanf ("%d %d %d", &i, &j, &k);
14+
15+
#ifdef DEBUG
16+
fprintf (stderr, "Number of integers read = %i\n", nread);
17+
fprintf (stderr, "i = %i, j = %i, k = %i\n", i, j, k);
18+
#endif
19+
20+
printf ("%i\n", process (i, j, k));
21+
return 0;
22+
}

0 commit comments

Comments
 (0)