2021-12-18 16:12:32 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2022-01-02 16:48:29 +01:00
|
|
|
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);
|
|
|
|
|
2022-01-04 01:59:00 +01:00
|
|
|
void bobo(void)
|
|
|
|
{
|
|
|
|
aurevoir();
|
|
|
|
}
|
|
|
|
|
2021-12-18 16:12:32 +01:00
|
|
|
int aurevoir(void)
|
|
|
|
{
|
|
|
|
return 42;
|
|
|
|
}
|
|
|
|
|
|
|
|
void bonjour(void)
|
|
|
|
{
|
|
|
|
puts("Bonjour !");
|
|
|
|
aurevoir();
|
|
|
|
}
|
|
|
|
|
|
|
|
void bye(void)
|
|
|
|
{
|
2022-01-02 16:48:29 +01:00
|
|
|
puts("Bye...");
|
2021-12-18 16:12:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void hello(void)
|
|
|
|
{
|
|
|
|
puts("Hello, world!");
|
|
|
|
bye();
|
|
|
|
bonjour();
|
|
|
|
}
|
|
|
|
|
2022-01-02 16:48:29 +01:00
|
|
|
void bar(void)
|
|
|
|
{
|
|
|
|
toto(1, 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
int foo(void)
|
2021-12-18 16:12:32 +01:00
|
|
|
{
|
|
|
|
hello();
|
2022-01-02 16:48:29 +01:00
|
|
|
bar();
|
|
|
|
return 1;
|
2021-12-18 16:12:32 +01:00
|
|
|
}
|
|
|
|
|
2022-01-02 16:48:29 +01:00
|
|
|
int toto(int a, int b)
|
2021-12-18 16:12:32 +01:00
|
|
|
{
|
2022-01-02 16:48:29 +01:00
|
|
|
if (a != 1)
|
|
|
|
foo();
|
|
|
|
else
|
|
|
|
aurevoir();
|
2021-12-18 16:12:32 +01:00
|
|
|
return a + b;
|
|
|
|
}
|
|
|
|
int main(void)
|
|
|
|
{
|
|
|
|
int res;
|
|
|
|
|
|
|
|
foo();
|
|
|
|
|
2022-01-02 16:48:29 +01:00
|
|
|
res = toto(21, 21);
|
2021-12-18 16:12:32 +01:00
|
|
|
printf("%i\n", res);
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|