sorry minor changes needed
first UNcomment the welcome(); function
second COmment the " printf("%d %d \n",r,c); " line in the function rand_mines();
here the mine is taken as char '9' and printing the above would reveal the mine positions.