Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Is const really const? Yes
//gcc 5.4.0 #include <stdio.h> int main(void) { static const char unmutable_chr = 'A'; char * mutable_ptr = (char *)&unmutable_chr; printf("unmutable: %c, mutable: %c at %p\r\n", unmutable_chr, *mutable_ptr, mutable_ptr); *mutable_ptr = 'B'; printf("unmutable: %c, mutable: %c at %p\r\n", unmutable_chr, *mutable_ptr, mutable_ptr); return 0; }
run
|
edit
|
history
|
help
0
18BCE2182 ASSESS_3 Q1
PUNTEROS 1
a3
B_141209_TrianguloTartalia
eliminate_duplicates.c
pruebapi2
Taco Code
ej 2 c3
child process
B_141104_NotaSwitch