Practice programs

320 solved programs for Track 6: C Programming: BCA, MCA, BTech & O Level, from Hello World to full projects. Go level by level.

Every program has the same five parts, so you always know where to look:

  1. Real life: where you meet this problem in daily life.
  2. Logic: the idea in 2 to 4 simple steps, before any code.
  3. Code: a complete program you can copy and run.
  4. Output: the real output, with the input typed.
  5. How it works: the key lines, explained in one or two short sentences.

Try each program yourself first. Then open the solution and compare.

The questions are free to see. The solutions open when you buy the course. See the course

  1. 1Hello World and basics30 programsBeginner
  2. 2Operators and calculations30 programsBeginner
  3. 3If and else decisions30 programsEasy
  4. 4Switch case15 programsEasy
  5. 5Loops45 programsEasy
  6. 6Nested loops and patterns20 programsMedium
  7. 7Functions20 programsMedium
  8. 8Recursion10 programsMedium
  9. 9Arrays20 programsMedium
  10. 10Sorting and advanced arrays20 programsHard
  11. 11Strings20 programsHard
  12. 12Pointers15 programsHard
  13. 13Structures15 programsHard
  14. 14File handling10 programsHard
  15. 15Real mini projects20 programsProjects