Intro to Programming Languages

Project 2.2 on Arrays and C-Strings

[ ← Module List ]

Greetings Coders!
You are moving forward with your C knowledge! Prepare to journey even further into C. In this set of challenges you'll learn more about debugging, arrays, c-strings, and file input/output.
  • Using print statements to debug
  • Set breakpoints and investigate variables using the visual debugger
  • Identify the location of a segmentation fault using valgrind.
  • Define a local array using one of the primitive types
  • Declare arrays using a literal
  • Access elements of an array using []
  • Iterate through an array of values
  • Define a c-string of with a maximum size
  • Access the characters of a c-string using []
  • Loop through a c-string
  • Writing a string to standard output using printf or puts
  • Open a file for output
  • Write output to a text file with fprintf
  • Open a file for input
  • Gather input from a text file using fgets
  • 9 challenges

    Challenges

    CHALLENGE 01

    P2.2 Level 01 length

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 02

    P2.2 Level 02 c-cat

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 03

    P2.2 Level 03 c-copy

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 04

    P2.2 Level 04 c-compare

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 05

    P2.2 Level 05 c-up

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 06

    P2.2 Level 06 c-bugs

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 07

    P2.2 Level 07 c-debugger

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 08

    P2.2 Level 08 c-debugger2

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location

    CHALLENGE 09

    P2.2 Level 09 c-grind

    — solves

    📋 Requirements available in VS Code!

    Click the "Requirements" button in the status bar (bottom right of VS Code) or use the keyboard shortcut Ctrl+Shift+Q to view the full assignment requirements.

    Requirements button location