Pergunta de entrevista da empresa Cisco

Where is string constants stored in Memory? Ex: char * a = "Hello" ;

Respostas da entrevista

Sigiloso

23 de jan. de 2012

@em - No need to add const, by default this string literal is considered constant and stored in a Read only memory section.

1

Sigiloso

7 de ago. de 2011

BFS section of Program Memory

2

Sigiloso

3 de set. de 2011

First all above statement is not constant string: it should be const char *a = "Hello"

1