Can u post complete program?



________________________________


To terminate the program after the requred cout you could use this clever trick
char segfault_arr[1];
void recurse(long double i)
{
   segfault_arr[ (i / 300000L) + 1];
   printf("%ld",i);
   recurse(i + 1);
}
  technically program should segfault at 300000 ie due to out of bound array 
access. Thus stopping the program, it entirely depends on stack size of your 
program, either stack overflow or segfault. Havnt tested the code just gave the 
notion.
_______________________________________________
Indian Libre User Group Cochin Mailing List
http://www.ilug-cochin.org/mailing-list/
http://mail.ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
#[email protected]

Reply via email to