I'm new, so forgive me if I post something wrong...

In the following code:

/*
* This program reads two SAT verbal scores (between 0
* and 800) for a student and prints the larger
*/

#include <stdio.h>

void instructions(void);
int ReadScore(void);
int OutOfRange(int score);
int max(int x, int y);

main()
{

int
score1, /* SAT verbal score #1 */
score2; /* SAT verbal score #2 */

/* call function instructions to print instructions */
/* obtain a value for score1 by calling ReadScore */
/* if score1 is out of range
print an error message
else
obtain a value for score2 by calling ReadScore
if score2 is out of range
print an error message
else
using function max print larger score */


instructions();
score1 = ReadScore();
if (OutOfRange(score1))
{
printf("\nScore1 is out of range\n");
}
else
{
score2 = ReadScore();

if (OutOfRange(score2))

printf("\nScore2 is out of range\n");

else
printf("\nYour maximum score is %d\n\n", max(score1, score2));
}
}


/*
* Function to print instructions on what the program does
*/

void instructions(void)
{
printf("This program interactively reads two SAT\n");
printf("verbal scores and prints the larger\n\n");
}

/*
* Function to read a score interactively
*/

int ReadScore(void)
{
int score;

printf("Entering stub ReadScore\n");
return score;

}

/*
* Function to return TRUE (1) if the SAT score is out of
* range. Range: 0-800
*/

int OutOfRange(int score)
{
printf("Entering stub OutOfRange\n");
return 0;
}

/*
* Function to return maximum of two integer parameters
*/

int max(int x, int y)
{

int stubReturn;

printf("Entering stub max\n");

if (x < y)
stubReturn = y;
else
stubReturn = x;
return (x);
}

error message is:

C:\My Documents\C Files\Lab031.c(76) : warning C4700: local variable 'score' used without having been initialized
Linking...

Lab031.exe - 0 error(s), 1 warning(s)

output looks like:

This program interactively reads two SAT
verbal scores and prints the larger

Entering stub ReadScore
Entering stub OutOfRange
Entering stub ReadScore
Entering stub OutOfRange
Entering stub max

Your maximum score is -858993460

Press any key to continue

I think I'm doing something wrong in:
int max(int x, int y)
{

int stubReturn;

printf("Entering stub max\n");

if (x < y)
stubReturn = y;
else
stubReturn = x;
return (x);
}

Maybe I'm returning the wrong variable...
Anyway, any help or ideas on what I'm doing wrong?

Thanks...
- Ed