if I try to define a string literal like what I would do in a hosted environment...
Code: Select all
void main(){
char *message = "this is awesome";
....
if I do
now it works, I can print it just fine... why the former fails? what is the reason for the failure?void main(){
char message[] = "this is awesome";
....
why can't I define string literal and assume it will be reserved in memory as if I do assembly programming directly?