I have written a program which sorts 5 user inputted integers in order within an array. The program is great but the only problem comes when exiting a while loop and I recieve an "Illegal Operation" notification.

The code for the loop is as follows:

while (again !='n')
{

/* The program itself is here but I don't think it is neccesary to include it all in this post!*/

printf("\nWould you like to continue? (y/n)");
scanf("%s", &again);
}

I can't see a problem and when y (or any other character) is selected it loops as intended.

Any ideas anyone?

Cheers