66 lines
621 B
C
66 lines
621 B
C
#include <stdio.h>
|
|
|
|
int aurevoir(void);
|
|
void bar(void);
|
|
void bonjour(void);
|
|
void bye(void);
|
|
void hello(void);
|
|
void bar(void);
|
|
int foo(void);
|
|
int toto(int a, int b);
|
|
|
|
int aurevoir(void)
|
|
{
|
|
return 42;
|
|
}
|
|
|
|
void bonjour(void)
|
|
{
|
|
puts("Bonjour !");
|
|
aurevoir();
|
|
}
|
|
|
|
void bye(void)
|
|
{
|
|
puts("Bye...");
|
|
}
|
|
|
|
void hello(void)
|
|
{
|
|
puts("Hello, world!");
|
|
bye();
|
|
bonjour();
|
|
}
|
|
|
|
void bar(void)
|
|
{
|
|
toto(1, 1);
|
|
}
|
|
|
|
int foo(void)
|
|
{
|
|
hello();
|
|
bar();
|
|
return 1;
|
|
}
|
|
|
|
int toto(int a, int b)
|
|
{
|
|
if (a != 1)
|
|
foo();
|
|
else
|
|
aurevoir();
|
|
return a + b;
|
|
}
|
|
int main(void)
|
|
{
|
|
int res;
|
|
|
|
foo();
|
|
|
|
res = toto(21, 21);
|
|
printf("%i\n", res);
|
|
|
|
return 0;
|
|
}
|