melbel profile image

C Programming Exercises

Solving programming puzzles can really boost your skill set and keep you sharp.
See all 2 photos
Solving programming puzzles can really boost your skill set and keep you sharp.

Looking to hone your C programming skills? Are you just learning to program and need to find area where you need to improve? Completing some C programming exercises is an awesome way to become a better programmer!

Doing some of these challenges can help you learn more about the C language, improve problem solving skills, and master new coding techniques.

Finding programming exercises can be difficult, so I created this guide to C programming exercises. Here is a growing list of places where you can brush up on your programming skills (and to learn new ones.)

Wikibooks C Exercises

If you're new to programming in C, Wikibooks has a page full of quizzes on a wide number of features on the C programming language.

The site starts out by quizzing you on their material and then moves on to questions that require the you to write a specific program. Each question contains a link to an answer so you can see whether or not you are correct.

You can visit their C Programming Beginning Exercises page to get started.

The C Puzzle Book
The C Puzzle Book

If you're looking for a book full of exercises, I recommend "The C Puzzle Book." It's chock full of problems written with the C programming language in mind. It's written so that the output of the program is the solution so that you can quickly and easily see if you're correct.

The book covers topics from a variety of angles giving readers a full look at syntax and semantics to give readers a full understanding of the language.

 

USA Computing Olympiad Programming Contest

The USA Computing Olympiad Programming Contest site not only hosts a programming contest, but also offers a large amount of training. Whether or not you're interested in the contest, you can make use of their preparation material.

You will be required to register at the gateway before viewing the content. The site is language agnostic, so if the C programming language really isn't your thing (or you'd like to learn another language), you'll still be able to enjoy this resource.

TopCoder

Topcoder is one of the most popular sites offering programming challenges and exercises. While it's another competitive programming community, it's great for improving programming skills independently.

Project Euler

Project Euler is an incredibly popular site for those interested in programming puzzles.

This site allows users to submit answers to problems in a number of programming languages including C.

Word of warning: Project Euler is very mathy, so if math isn't your strong suit, you might want to look elsewhere.

A sample program in the C language
See all 2 photos
A sample program in the C language

UVa Online Judge

UVa Online Judge has hundreds of problems similar to those used in programming contests. You can do these exercises at your own leisure in a wide number of languages.

The site also runs contests from time to time for those interested in participating in coding competitions.

Sphere Online Judge (SPOJ)

SPOJ is essentially a large database of programming problems in various languages.

Here, you can select your preferred programming language and check out exercises to solve in that particular language. The above link will take you to their index of C programming exercises.

Exercises from "The C Programming Language"

The C Programming Language Exercises website maintains a list of exercises from the book, "The C Programming Language."

In order to view the exercises, navigate down to the area that says "solutions" and select a chapter. The next page will show each exercise as well as a link to its solution.

More Exercises

The article, "Programming Challenges" contains a list of more places you can find puzzles.

Some of the sites on the programming challenges list run contests and, if you do well on puzzles on one site, you could possibly land yourself a new job! That sounds like a pretty sweet deal to me!


 Last updated on August 1, 2014

Useful {5}Funny {2}Awesome {2}Beautiful {1}Interesting {3}

Comments 5 comments

David Trujillo profile image

David Trujillo 11 months ago from Medellin, Colombia

I havenĀ“t continued a programming course that i purchased at Udemy.com Wanna start over after reading this


Johnjfernando profile image

Johnjfernando 19 months ago

This is really interesting and very informative. I really like this hub and I am going to definetly bookmark this because I am trying to hone my skills in programming to use a game engine to create 2D-3D games as a hobby of mine. I've actually gotten pretty good at the basics when it comes to 2D. I have some previous experience in programming since high school and also have taken a course in computer science for mainly programming and until the last few months I decided to get back into computer programming since high school which is like years ago. I have been sifting through many books and articles here and there, but this is amazing. I had no idea that hubpages would have articles about the concept and yours is really great. I will be coming back and checking from time to time for some pointers. Thanks so much!


kimsal 20 months ago

I need c program exercises


TToombs08 profile image

TToombs08 2 years ago from Somewhere between Heaven and Hell without a road map.

You should hand out aspirin with these kinds of hubs, Mel! :)


ChristyWrites profile image

ChristyWrites 2 years ago from British Columbia, Canada Level 2 Commenter

What an interesting read, thanks!

    Sign in or sign up and post using a HubPages account.

    8192 characters left.
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your Hubs or other sites.


    Click to Rate This Article
    Please wait working