I am trying to compile the following C code on linux:
#include <stdio.h>
/////
void func1();
void func2();
//////
void func1()
{
func2();
}
void func2()
{
func1();
}
int main()
{
func1();//call to function 1
}
If I am not wrong then the program should execute infintely but when i compile and run it on linux it gives Segmentation Fault. Why is this happening?