Language
C
Compiler
gcc 10.1.0
Options
Warnings
C99
-pedantic
$ gcc prog.c -Wall -Wextra -std=c99 -pedantic
Signal:
Segmentation fault
Author
anonymous
over 4 years ago
C
gcc 10.1.0
Author
anonymous
over 4 years ago
$ gcc prog.c -Wall -Wextra -std=c99 -pedantic
prog.c:10:6: warning: return type of 'main' is not 'int' [-Wmain]
10 | void main(){
| ^~~~
prog.c: In function 'main':
prog.c:13:13: warning: passing argument 1 of 'inOrder' from incompatible pointer type [-Wincompatible-pointer-types]
13 | inOrder(arr, 9);
| ^~~
| |
| int *
prog.c:1:20: note: expected 'int **' but argument is of type 'int *'
1 | void inOrder(int **arr, int size){
| ~~~~~~^~~