Git Product home page Git Product logo

c_challenges's Introduction

C Language Challenges

The C_Challenges suite is a set of assessments to evaluate and review ones knowledge in the C language.

They were devised by University of Missouri Professor Jim Ries to encourage developers to dive deeper into understanding C development.

Installation

CMake is used to build the tests for the challenge. To run all available tests, first clone the repository and run CMake (minimum version 3.5) to build. Then run the tests using CTest.

mkdir build  # create and enter build directory
cd build
cmake ..     # build environment
make
ctest -V     # run all tests

A helper script tester.sh is also available to simplify the testing process on UNIX systems. To build and run all tests, simply run:

./tester.sh

or to test a specific challenge:

cd bitmap
../tester.sh

Note: Tester script will overwrite the contents of the ./build directory to ensure tests are .

Dependencies

CMake >3.5, Make

Some challenges are inherently POSIX-specific and will not run correctly on non-POSIX machines or architectures. This is an instructional feature of the challenges, and serves as a reminder of non-conformity across different version of C.

Testing Specific Challenges

If you would prefer to test challenges individually, the same build procedure can be run from within a challenge directory. The tester script can also be called from a child directory:

cd arrays
../tester.sh

Challenges

  • arrays
  • strings
  • system programming
  • bits
  • allocation
  • debug
  • error_handling
  • structures

Original challenges and tests courtesy of Professor Ries.

All C implementations, the tester.sh script, and CTest integration are my own work. If you would like to try any challenge for yourself, feel free to visit the src/ sub-directories and replace my completed *.c implementations with the provided *.bkp.c starter code:

cp -i bitmap/src/bitmap.bkp.c bitmap/src/bitmap.c

-Malek Necibi

c_challenges's People

Contributors

maleknecibi avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.