> (gdb) where
> #0  0x20068c8e in ?? ()
> #1  0x2007d060 in ?? ()
> #2  0x2005c456 in ?? ()
> #3  0x1646 in main () at foo.c:8
> (gdb)  
> 
isnt this a strange place for the program to be loaded (I cant remember
seing programs in this address range...

> here's the code itself:
> 
> #include <stdio.h>
> 
> void main()
> {
> char foo="bababa";
> char bar="hello world";
> 
you initialise a character variable with a pointer to a string constant
(compiler actually tells this). I think it should be

char * foo = "bababa"

and later passing the pointer:

printf(" foo %s\n",foo);

Niels HP
[EMAIL PROTECTED]

Reply via email to