~ubuntu-branches/ubuntu/oneiric/clif/oneiric

« back to all changes in this revision

Viewing changes to tests/test31.ci

  • Committer: Bazaar Package Importer
  • Author(s): Adrian Bunk
  • Date: 2002-01-25 14:05:49 UTC
  • Revision ID: james.westby@ubuntu.com-20020125140549-v5mmddxqlcrgzhd2
Tags: upstream-0.93
ImportĀ upstreamĀ versionĀ 0.93

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
int d, c, e;
 
2
 
 
3
int prva();
 
4
int
 
5
druha (int a, int b)
 
6
{
 
7
  int f;
 
8
  printf ("d=%d\n", d);
 
9
  b = a + b;
 
10
  printf ("b=%d\n", b);
 
11
  printf ("d=%d\n", d);
 
12
  f = prva ();
 
13
  printf ("f=%d\n", f);
 
14
  return b;
 
15
}
 
16
 
 
17
int
 
18
prva ()
 
19
{
 
20
  return 1;
 
21
}
 
22
 
 
23
printf ("zadaj d\n");
 
24
scanf ("%d", d);
 
25
c = druha (d = e = prva (), d);
 
26
printf ("c=%d\n", c);
 
27
printf ("d=%d\n", d);
 
28
printf ("e=%d\n", e);
 
29
exit;