Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Is const really const?
//gcc 5.4.0 #include <stdio.h> int main(void) { const char unmutable_chr = 'A'; char *mutable_ptr = (char *)&unmutable_chr; printf("unmutable: %c, mutable: %c\r\n", unmutable_chr, *mutable_ptr); *mutable_ptr = 'B'; printf("unmutable: %c, mutable: %c\r\n", unmutable_chr, *mutable_ptr); return 0; }
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
C_141210_Funciones
Ascii contrasena segura
1.3 Max threads
a
Pointer Example
Lab 9 v0.6
Assignment 5 Cos(x)
Example array of struct print
C programming example for a Person struct and typedef (from ECE 2534)
If Statement/ Decrements V2
Please log in to post a comment.