Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 5 years ago

Language

C

Compiler

gcc HEAD 10.0.1 20200307 (experimental)

Options
Warnings
C11(GNU)
no pedantic

Author

anonymous

over 5 years ago

$ gcc prog.c -Wall -Wextra -std=gnu11
prog.c: In function 'main':
prog.c:11:28: warning: format '%p' expects a matching 'void *' argument [-Wformat=]
   11 |     printf("%p, %p, %p -> %p\n", input, inputArray, pointer);
      |                           ~^
      |                            |
      |                            void *
0x7fffbb84d74f, 0x7fffbb84d730, 0x7fffbb84d730 -> 0x4006f0
Adress: 0x7fffbb84d730 [0]: 120 ==> x 
Adress: 0x7fffbb84d731 [1]: 105 ==> i 
Adress: 0x7fffbb84d732 [2]: 110 ==> n 
Adress: 0x7fffbb84d733 [3]: 32 ==>   
Adress: 0x7fffbb84d734 [4]: 99 ==> c 
Adress: 0x7fffbb84d735 [5]: 104 ==> h 
Adress: 0x7fffbb84d736 [6]: 97 ==> a 
Adress: 0x7fffbb84d737 [7]: 111 ==> o 
Adress: 0x7fffbb84d738 [8]: 32 ==>   
Adress: 0x7fffbb84d739 [9]: 0 ==>  
Adress: 0x7fffbb84d73a [10]: 0 ==>  
Adress: 0x7fffbb84d73b [11]: 0 ==>  
Adress: 0x7fffbb84d73c [12]: 0 ==>  
Adress: 0x7fffbb84d73d [13]: 0 ==>  
Adress: 0x7fffbb84d73e [14]: 0 ==>  
Adress: 0x7fffbb84d73f [15]: 0 ==>  
Adress: 0x7fffbb84d740 [16]: 0 ==>  
Adress: 0x7fffbb84d741 [17]: 0 ==>  
Adress: 0x7fffbb84d742 [18]: 0 ==>  
Adress: 0x7fffbb84d743 [19]: 0 ==>  
Input la: a
After Adress: 0x7fffbb84d700 [0]: 0 ==>  
After Adress: 0x7fffbb84d701 [1]: 0 ==>  
After Adress: 0x7fffbb84d702 [2]: 0 ==>  
After Adress: 0x7fffbb84d703 [3]: 0 ==>  
After Adress: 0x7fffbb84d704 [4]: 0 ==>  
After Adress: 0x7fffbb84d705 [5]: 0 ==>  
After Adress: 0x7fffbb84d706 [6]: 0 ==>  
After Adress: 0x7fffbb84d707 [7]: 0 ==>  
After Adress: 0x7fffbb84d708 [8]: 0 ==>  
After Adress: 0x7fffbb84d709 [9]: 0 ==>  
After Adress: 0x7fffbb84d70a [10]: 0 ==>  
After Adress: 0x7fffbb84d70b [11]: 0 ==>  
After Adress: 0x7fffbb84d70c [12]: 0 ==>  
After Adress: 0x7fffbb84d70d [13]: 0 ==>  
After Adress: 0x7fffbb84d70e [14]: 0 ==>  
After Adress: 0x7fffbb84d70f [15]: 0 ==>  
After Adress: 0x7fffbb84d710 [16]: 0 ==>  
After Adress: 0x7fffbb84d711 [17]: 0 ==>  
After Adress: 0x7fffbb84d712 [18]: 0 ==>  
After Adress: 0x7fffbb84d713 [19]: 0 ==>  
Exit Code:
0