Odd situation

by FG on March 11th, 2010

I have 3 odd situations sometimes it goes beyond the functions, sometimes it does not.

Syntax: C
Show lines - Hide lines - Show in textbox - Download
calc_center();
printf("After calc_center!\n");
residue_conect();
printf("After residue_connect!\n");
assign_types();
printf("After assign_types!\n");
 
//OUTPUT
//After calc_center!
//After residue_connect!
//Segmentation fault
 
===========================================
 
calc_center();
//printf("After calc_center!\n");
residue_conect();
printf("After residue_connect!\n");
assign_types();
printf("After assign_types!\n");
 
//OUTPUT
//Segmentation fault
 
===========================================
 
calc_center();
printf("After calc_center!\n");
residue_conect();
//printf("After residue_connect!\n");
assign_types();
printf("After assign_types!\n");
 
//OUTPUT
//After calc_center!
//Segmentation fault
 

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS