When you really want to write a minesweeper game the language C isnt the best, because some graphic element with an elegant GUI would be a better result. So C++ with some framework like MFC or Gt or C# would leed to nicer results, because the have big libraries like for string handling, painting beautiful graphics and UI elements.
If you really want to use C than you should
structure and design your code. I have provided some of my experiences and knowledge in the article
How to start the homework.