C bootcamp

Question on the left. Your C on the right. Check it.

Each lab is one problem: read the spec, write a solution, press Run, then Check. Hints stay closed. The correct code is there when you need it. gcc grades stdout against hidden tests.

50 labs · 28 easy · 22 medium · progress stays in this browser.

  1. Read the questionInput, output, and a short example. Same shape as a classroom worksheet.
  2. Write C, then RunThe starter is a skeleton. Change it, then see what happens.
  3. Check, or open a hintCheck runs every test. Hint and correct code stay folded until you open them.

Labs

Work them in order, or jump ahead when you are ready.

  1. 01easy

    Hello, C

    Output · 5 min

    Open lab
  2. 02easy

    Sum two numbers

    Input · 8 min

    Open lab
  3. 03easy

    Celsius to Fahrenheit

    Operators · 8 min

    Open lab
  4. 04easy

    Even or odd

    If Else · 8 min

    Open lab
  5. 05easy

    Largest of three

    If Else · 10 min

    Open lab
  6. 06easy

    Times table

    For Loop · 10 min

    Open lab
  7. 07easy

    Sum 1 to n

    While Loop · 10 min

    Open lab
  8. 08medium

    Maximum in an array

    Arrays · 12 min

    Open lab
  9. 09medium

    Reverse a word

    Strings · 12 min

    Open lab
  10. 10medium

    Factorial function

    Functions · 12 min

    Open lab
  11. 11medium

    Swap with pointers

    Pointers · 12 min

    Open lab
  12. 12medium

    Point distance

    Structures · 15 min

    Open lab
  13. 13easy

    Letter grade

    If Else · 10 min

    Open lab
  14. 14easy

    Squares on one line

    For Loop · 10 min

    Open lab
  15. 15medium

    FizzBuzz

    For Loop · 12 min

    Open lab
  16. 16medium

    Fibonacci sequence

    While Loop · 12 min

    Open lab
  17. 17medium

    Count the words

    Strings · 12 min

    Open lab
  18. 18easy

    Count the vowels

    Strings · 10 min

    Open lab
  19. 19medium

    Palindrome check

    Strings · 12 min

    Open lab
  20. 20medium

    Average of an array

    Arrays · 12 min

    Open lab
  21. 21medium

    Second largest

    Arrays · 15 min

    Open lab
  22. 22medium

    Unique and sorted

    Arrays · 12 min

    Open lab
  23. 23easy

    Leap year

    If Else · 10 min

    Open lab
  24. 24easy

    Sum of digits

    While Loop · 10 min

    Open lab
  25. 25easy

    Countdown

    For Loop · 8 min

    Open lab
  26. 26easy

    Skip multiples of 3

    Break Continue · 10 min

    Open lab
  27. 27medium

    Prime check

    Functions · 12 min

    Open lab
  28. 28medium

    Greatest common divisor

    Functions · 12 min

    Open lab
  29. 29easy

    Star triangle

    Nested Loops · 10 min

    Open lab
  30. 30easy

    Day of the week

    Switch · 10 min

    Open lab
  31. 31medium

    Reverse an array

    Arrays · 12 min

    Open lab
  32. 32medium

    Linear search

    Arrays · 12 min

    Open lab
  33. 33medium

    Matrix sum

    2D Arrays · 12 min

    Open lab
  34. 34easy

    Integer power

    Math · 10 min

    Open lab
  35. 35easy

    Min with a ternary

    Ternary · 8 min

    Open lab
  36. 36easy

    String length

    Strings · 8 min

    Open lab
  37. 37medium

    Collatz steps

    While Loop · 12 min

    Open lab
  38. 38easy

    Keep the evens

    Arrays · 10 min

    Open lab
  39. 39easy

    Min and max

    Arrays · 10 min

    Open lab
  40. 40medium

    Power by recursion

    Recursion · 12 min

    Open lab
  41. 41easy

    Count the digits

    Strings · 8 min

    Open lab
  42. 42easy

    Days in a month

    Switch · 10 min

    Open lab
  43. 43medium

    Power of two

    Bitwise · 12 min

    Open lab
  44. 44medium

    Anagram check

    String Functions · 12 min

    Open lab
  45. 45easy

    Fahrenheit from Celsius

    Math · 8 min

    Open lab
  46. 46easy

    Absolute difference

    Math · 8 min

    Open lab
  47. 47easy

    Median of three

    If Else · 10 min

    Open lab
  48. 48medium

    Word frequency

    Strings · 15 min

    Open lab
  49. 49easy

    Greet by name

    Strings · 8 min

    Open lab
  50. 50easy

    Sum an array

    Arrays · 10 min

    Open lab

FAQ: C Bootcamp Labs

Common questions about this page.

What are StudyGrid C Labs?

C Labs are bootcamp-style problems at /c/labs. The question, examples, and a folded hint sit on the left. You write C on the right, press Run or Preview, then Check. You can open the correct code if you get stuck.

Should I run c bootcamp labs examples locally for better learning?

Yes. Use the browser editor on StudyGrid for a quick check, then Download the example and run it on your computer. Local runs show real errors and the real toolchain, which is one of the fastest ways to learn c bootcamp labs in this C Labs C lesson (C Bootcamp Labs).

How does Check work in C Labs?

Check grades your work with gcc. If every test passes, the lab is marked complete in this browser.

Can I see a hint or the correct C solution?

Yes. Hint and Show correct code stay closed until you open them. You can load the solution into the editor and still press Check.

Do I need to install extra software for C Labs?

No. Labs run in the browser, the same way the C editor does at /c/try.

Is the C bootcamp free?

Yes. The labs on StudyGrid (studygrid.in) are free. Progress is stored in this browser only.