Can anyone give me a site that contains a C source code. it must be a game or something that I can copy the code. thanks

One has to ask why?

Any way there are a number of sites with example C code such as:

http://webhome.csc.uvic.ca/~bgorman/c/go/

http://ourworld.compuserve.com/homepages/blueberry/samples.htm

thanks a lot Dr. Russ.. Take care.. :)

Certainly! One popular website where you can find C source code for games is GitHub. GitHub is a platform where developers all around the world share their code with others. To find C source code for games on GitHub, follow these steps:

1. Visit the website: Go to https://github.com.
2. Search for games: In the search bar at the top of the page, enter keywords related to the type of game you are looking for, such as "C game," "C source code game," or even specific game titles.
3. Filter the results: Once you hit Enter, you will see a list of repositories related to your search. On the left side of the page, you can filter the results further by selecting the "C" language, which will display only repositories that contain code written in C.
4. Explore the repositories: Browse through the repositories to find a game that interests you. Make sure to read the README file or any instructions provided within the repository to understand how to compile and run the game.
5. Copy the code: Within the repository, locate the source code file(s) (typically with a .c extension) you wish to copy. Click on the file to view its contents. You can then select and copy the source code to use in your own project.

Remember to be respectful of any license or usage restrictions specified by the repository owner. It's a good practice to check if the code is licensed under an open-source license that permits you to use and modify it for your purposes.

Note that GitHub is just one of the many resources available for finding C source code. You can also explore other online repositories, forums, or websites dedicated to game development or C programming to find more examples and code snippets.