Thread: C Programming Exercises

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    2

    C Programming Exercises

    Hi guys,
    I need a couple of exercises in C with or without their solutions for a project in the university!!!Do you know any site with free exercises?(It would be better if the exercises are not very difficult!!)
    Thank you any way...

  2. #2
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    1. don't hijack threads
    2. especially not ancient threads
    3. Let me google that for you

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    The only thing I can think of would be
    Sphere Online Judge (SPOJ) - Problems
    They are not C specific and there are no solutions, but you can submit yours to the site for (instant) evaluation (in any one of a bunch of languages; the criteria is speed and most of the winning entries are written in C ). The problems range from dead simple to totally impossible but IMO the "judge" standards are pretty tough; you can easily fail even the simple problems because your code is too slow. And if you pass, you know your code is correct (and reasonably optimized).

    Quote Originally Posted by cyberfish View Post
    1. don't hijack threads
    2. especially not ancient threads
    Not sure if I understand that cyberfish.
    Last edited by MK27; 05-23-2009 at 09:10 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    A mod split it.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    1

    Smile RE: Sites for practice exercises

    I ran across these a while ago and bookmarked:

    The C Programming Language Answers To Exercises
    [oucs] Programming in C - Course Exercises

    Hope it helps....

  6. #6
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    [edit: ignore the next two posts, I was trying some voodoo on Salem ]

    @Muneeb: you should start a *new thread* in the C++ forum, using the "new thread" button there. Otherwise you probably won't get much attention.

    @cyberfish:
    Quote Originally Posted by cyberfish View Post
    A mod split it.
    Look, this is cursed now...
    Last edited by MK27; 05-23-2009 at 10:30 AM.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  7. #7
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Look, this is cursed now...
    Yes, it is
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  8. #8
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    The only thing I can think of would be
    Sphere Online Judge (SPOJ) - Problems
    I agree, SPOJ is really nice. But, if you are just a beginner, I wouldn't recommend starting out over there.
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Dietel C How to program exercises
    By droseman in forum C Programming
    Replies: 4
    Last Post: 10-02-2008, 09:55 AM
  2. seeking for exercises
    By smoking81 in forum Linux Programming
    Replies: 7
    Last Post: 09-14-2008, 06:46 PM
  3. C programe Exercises?
    By RahulDhanpat in forum C Programming
    Replies: 10
    Last Post: 02-29-2008, 01:26 PM
  4. Exercises
    By blankstare77 in forum C++ Programming
    Replies: 2
    Last Post: 08-31-2005, 05:46 PM
  5. Where can i find C exercises to do?
    By Nutshell in forum C Programming
    Replies: 4
    Last Post: 02-21-2002, 02:33 AM