Here is my program:
void f(){
printf("here\n");
}
void main(){
}
I compiled it with gcc -ef *.c
. When I run it gives the following output:
here
Segmentation fault (core dumped)
The backtrace shows this:
#0 0x0000000000000001 in ?? ()
#1 0x00007fffffffdf9e in ?? ()
#2 0x0000000000000000 in ?? ()
What is the problem here?