Skip to primary content
Skip to secondary content

C For Dummies Blog

Main menu

  • C For Dummies (home)
  • History
  • Series
  • Supplemental
  • Blog Miscellany

Category Archives: Exercise

Post navigation

Newer posts →

Test Your Formatting Knowledge

Posted on November 1, 2013 by dgookin
Reply

In late September and early October, I wrote a series of lessons on how the various printf() formatting commands are used. Now it’s time to put your skills to the test.
Continue reading →

Posted in Exercise | Leave a reply

Allow Me to Squeeze In Here…

Posted on October 1, 2013 by dgookin
Reply

When it comes to editing text, the concept of copy and paste is an old one: You select a chunk of text, choose its new location, then paste in the text. The surrounding text jiggles around to make room. Neat and tidy.
Continue reading →

Posted in Exercise | Leave a reply

Min and Max

Posted on September 1, 2013 by dgookin
Reply

The C language is rather weak when it comes to array functions. In fact, as far as I know, the standard library doesn’t contain a single array function.
Continue reading →

Posted in Exercise | Leave a reply

The Caesarian Cipher

Posted on August 1, 2013 by dgookin
Reply

A Caesarian Cipher is one of the simplest, weakest forms of encryption. Supposedly developed by Julius Caesar, it’s a letter substitution cipher: A becomes C, B becomes D, C becomes E, and so on.
Continue reading →

Posted in Exercise | Leave a reply

We Have a Winnah!

Posted on July 1, 2013 by dgookin
Reply

The game of Tic-Tac-Toe is played on a simple 3-by-3 grid, what C programmers would call a matrix. It’s not The Matrix, of course, but it’s a simple array in which players can battle.
Continue reading →

Posted in Exercise | Leave a reply

1st, 2nd, and 3th

Posted on June 1, 2013 by dgookin
Reply

For your June exercise, you need to concoct code that properly generates an ordinal number. Write a function that returns a string “st” “nd” “rd” or “th” that’s tacked on to any integer value from 1 through what-have-you.
Continue reading →

Posted in Exercise | Leave a reply

Word Swapping

Posted on May 1, 2013 by dgookin
Reply

For your May challenge, write code that takes a two word sentence and displays the words in reverse order. For example, take the string Swap me and have the program spit out the text me Swap.
Continue reading →

Posted in Exercise | Leave a reply

Post navigation

Newer posts →

Recent Posts

  • Ctype Functions: isgraph() and isprint()
  • Ctype Functions: isalnum(), isalpha() and isdigit()
  • Ctype Functions: isupper() and islower()
  • Ctype Functions: toupper() and tolower()
  • Pointers to Multi-Dimension Arrays – Solution

Recent Comments

  • Chris Webb on Ctype Functions: isupper() and islower()
  • M.Stumpfl on Ctype Functions: toupper() and tolower()
  • M.Stumpfl on Ctype Functions: isupper() and islower()
  • dgookin on Ctype Functions: isupper() and islower()
  • dgookin on Ctype Functions: toupper() and tolower()

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress