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 *
0x7fff982dcaeb, 0x7fff982dcad0, 0x7fff982dcac8 -> 0x4006f0
Adress: 0x7fff982dcad0 [0]: 120 ==> x 
Adress: 0x7fff982dcad1 [1]: 105 ==> i 
Adress: 0x7fff982dcad2 [2]: 110 ==> n 
Adress: 0x7fff982dcad3 [3]: 32 ==>   
Adress: 0x7fff982dcad4 [4]: 99 ==> c 
Adress: 0x7fff982dcad5 [5]: 104 ==> h 
Adress: 0x7fff982dcad6 [6]: 97 ==> a 
Adress: 0x7fff982dcad7 [7]: 111 ==> o 
Adress: 0x7fff982dcad8 [8]: 32 ==>   
Adress: 0x7fff982dcad9 [9]: 0 ==>  
Adress: 0x7fff982dcada [10]: 0 ==>  
Adress: 0x7fff982dcadb [11]: 0 ==>  
Adress: 0x7fff982dcadc [12]: 0 ==>  
Adress: 0x7fff982dcadd [13]: 0 ==>  
Adress: 0x7fff982dcade [14]: 0 ==>  
Adress: 0x7fff982dcadf [15]: 0 ==>  
Adress: 0x7fff982dcae0 [16]: 0 ==>  
Adress: 0x7fff982dcae1 [17]: 0 ==>  
Adress: 0x7fff982dcae2 [18]: 0 ==>  
Adress: 0x7fff982dcae3 [19]: 0 ==>  
Input la: a
After Adress: 0x7fff982dcad0 [0]: 120 ==> x 
After Adress: 0x7fff982dcad1 [1]: 105 ==> i 
After Adress: 0x7fff982dcad2 [2]: 110 ==> n 
After Adress: 0x7fff982dcad3 [3]: 32 ==>   
After Adress: 0x7fff982dcad4 [4]: 99 ==> c 
After Adress: 0x7fff982dcad5 [5]: 104 ==> h 
After Adress: 0x7fff982dcad6 [6]: 97 ==> a 
After Adress: 0x7fff982dcad7 [7]: 111 ==> o 
After Adress: 0x7fff982dcad8 [8]: 32 ==>   
After Adress: 0x7fff982dcad9 [9]: 0 ==>  
After Adress: 0x7fff982dcada [10]: 0 ==>  
After Adress: 0x7fff982dcadb [11]: 0 ==>  
After Adress: 0x7fff982dcadc [12]: 0 ==>  
After Adress: 0x7fff982dcadd [13]: 0 ==>  
After Adress: 0x7fff982dcade [14]: 0 ==>  
After Adress: 0x7fff982dcadf [15]: 0 ==>  
After Adress: 0x7fff982dcae0 [16]: 0 ==>  
After Adress: 0x7fff982dcae1 [17]: 0 ==>  
After Adress: 0x7fff982dcae2 [18]: 0 ==>  
After Adress: 0x7fff982dcae3 [19]: 0 ==>  
Exit Code:
0