APPFS
Advanced practical programming for scientists
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
ex4_order.c File Reference
#include <stdio.h>

Go to the source code of this file.

Functions

int f1 (void)
 
int f2 (void)
 
int f3 (void)
 
int f4 (void)
 
int ff (int a, int b, int c)
 
int main ()
 

Function Documentation

int f1 ( void  )

Definition at line 5 of file ex4_order.c.

5 { puts("f1"); return 2; }
int f2 ( void  )

Definition at line 6 of file ex4_order.c.

6 { puts("f2"); return 3; }
int f3 ( void  )

Definition at line 7 of file ex4_order.c.

7 { puts("f3"); return 5; }
int f4 ( void  )

Definition at line 8 of file ex4_order.c.

8 { puts("f4"); return 7; }
int ff ( int  a,
int  b,
int  c 
)

Definition at line 10 of file ex4_order.c.

11 {
12  puts("ff");
13  return a + b + c;
14 }
char c
Definition: ex4_struct.c:4
int main ( )

Definition at line 16 of file ex4_order.c.

17 {
18  printf("x=%d\n", ff(f1(), f2() * f3(), f4()));
19 }
int f3(void)
Definition: ex4_order.c:7
int f1(void)
Definition: ex4_order.c:5
int f4(void)
Definition: ex4_order.c:8
int ff(int a, int b, int c)
Definition: ex4_order.c:10
int f2(void)
Definition: ex4_order.c:6