I wrote the following C program.
int main() {
int i = 3;
char *q = "hello";
char *p = NULL;
return 0;
}
When I compile and debug it with gdb, I get the following reg information..
gcc main.c -g
gdb a.out
info reg:
cs 0x33 51
ss 0x2b 43
ds 0x0 0
My question is if ds
is 0, how integer i
and char* q
are getting their physical address?