Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 4 years ago

Language

C

Compiler

gcc 10.1.0

Options
Warnings
C99
-pedantic

Author

anonymous

over 4 years ago

$ gcc prog.c -Wall -Wextra -std=c99 -pedantic
prog.c: In function 'insert':
prog.c:73:22: warning: unused parameter 'max' [-Wunused-parameter]
   73 |     void insert (int max, int *size, int ar[], int num)
      |                  ~~~~^~~
prog.c: In function 'iremove':
prog.c:86:24: warning: unused parameter 'size' [-Wunused-parameter]
   86 |     void iremove (int *size, int ar[], int num)
      |                   ~~~~~^~~~
prog.c:86:34: warning: unused parameter 'ar' [-Wunused-parameter]
   86 |     void iremove (int *size, int ar[], int num)
      |                              ~~~~^~~~
prog.c:86:44: warning: unused parameter 'num' [-Wunused-parameter]
   86 |     void iremove (int *size, int ar[], int num)
      |                                        ~~~~^~~
Please select an option: 
(1) Initialize the array 
(2) Insert an integer 
(3) Remove an integer 
(4) Display the numbers stored in the array 
(5) Quit 
Enter your choice: 
Enter the total number of integers (MAX=10): 
Enter the integers: 
Enter your choice: 
Enter an integer: 
Enter your choice: 
The 6 numbers in the array: 
11 22 33 44 55 334 
Enter your choice: 
Exit Code:
0