I keep Getting Control reaches end of non-void function. What am I doing wrong?
- by Allen
location pick(void){ // generates a random location
location get;
get.x = rand() % FIELD_SIZE + 1;
int forY = rand() % FIELD_SIZE +1;
switch(forY){
case 1:
get.y = 'a';
break;
case 2:
get.y = 'b';
break;
case 3:
get.y = 'c';
break;
case 4:
get.y = 'd';
break;
case 5:
get.y = 'e';
break;
}
}