You are viewing a single comment's thread. Return to all comments →
Hello! I'm having this little problem in the output: 'Runtime error', compiler message 'segmentation fault'.
Does anyone know how to fix this? Here's the code:
void print_all_packages(town t) { printf("%c\n", *t.name); for (int i=0; i<t.offices_count; i++) { post_office office = t.offices[i]; printf("\t%d:\n", i); for (int j=0; j<office.packages_count; j++) { package currPackage = office.packages[j]; printf("\t\t%c", *currPackage.id); } } }
Seems like cookies are disabled on this browser, please enable them to open this website
Post Transition
You are viewing a single comment's thread. Return to all comments →
Hello! I'm having this little problem in the output: 'Runtime error', compiler message 'segmentation fault'.
Does anyone know how to fix this? Here's the code: