I'm having a problem with my program exiting when I want it to. I want it to exit the program completely if 'q' is pressed, yet it goes on to the 'menu' function even if 'q' is pressed....Can someone help me with getting the program to exit completely if q is pressed. Here is the code I have and any help would be appreciated.

Code:
 	if (Filename!="junk.txt")
	{
		printf("File does not exist\n");
		printf("Press (c) to create one, or (q) to quit: ");
		scanf("%d",&answer);
	switch(answer)
	{
		case 'c' : WriteRecordsToFile(Guests);break;
		case 'q' : exit(0);
	}
	}
	TotalRecords = ReadRecordsFromFile(Guests);
	Menu(Guests);