Code : Tout sélectionner
m68k-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
Code : Tout sélectionner
void enqueue(index_queue, index_proc)
int index_queue, index_proc;
{
Modérateurs : Papy.G, fneck, Carl
Code : Tout sélectionner
m68k-linux-gnu-gcc (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0
Copyright (C) 2019 Free Software Foundation, Inc.
Code : Tout sélectionner
void enqueue(index_queue, index_proc)
int index_queue, index_proc;
{
Code : Tout sélectionner
$ cat tst.c
main(i) {
return i>=2 ? i*main(i-1) : 1;
}
$ gcc tst.c
tst.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | main(i) {
| ^~~~
tst.c: In function ‘main’:
tst.c:1:1: warning: type of ‘i’ defaults to ‘int’ [-Wimplicit-int]
$ ./a.out ./a.out ./a.out ./a.out ./a.out ; echo "5! = $?"
5! = 120