I'm teaching myself Pro*C and this is a program with a cursor through records in a database, and it compiles and runs. It gets as a far as prompting "Enter a Guest_ID(type exit to terminate)>>". After that it errors as "Segmentation fault (core dumped)" if an integer is entered. If a string is entered, it seems to go into the conditional immediately inside the outer for loop at I'm teaching myself Pro*C and this is a program