Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
modify char by mem addr
//gcc 5.4.0 #include <stdio.h> int main(void) { char a = 'a'; char b = 'b'; char* aMem = NULL; printf("%c ; %p\n", a, &a); printf("%c ; %p\n", b, &b); aMem = (char*) &b - sizeof(char); printf("a1 dump (%c), %p\n", *aMem, aMem); *aMem = 'd'; printf("new %c", a); }
run
|
edit
|
history
|
help
0
B_141104_NotaSwitch
TeleBook
2017_1117_TARTAGLIA
sum of arrays
Programação em C, testes
18BCE2182 ASSESS_3 Q3
AVANCE 1 TAREA M4 - PERLAS
A_141124_arrayMaxMin01
150115_MatrizTodosDistintos
ECE 2574 1/23