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 →

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

  • What is the Largest Value?
  • Accessing the Mouse in a Terminal Window
  • Storing and Interpreting Mouse Input
  • Where is the Mouse?
  • Pulling Numbers from a String – Solution

Recent Comments

  • dgookin on Reading Raw Input
  • Chris Webb on Reading Raw Input
  • dgookin on Is It a “Real” Triangle? – Solution
  • Chris Webb on Is It a “Real” Triangle? – Solution
  • dgookin on A Colorful Hexdump

Meta

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

Copyright © 1997-2026 by QPBC.
All rights reserved

Proudly powered by WordPress