Project 2.2 on Arrays and C-Strings


Intro to Programming Languages.

[ ← 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


  • Challenges

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    📋 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

    Connect with SSH

    Link your SSH key, then connect with: ssh [email protected]

    30-Day Scoreboard:

    This scoreboard reflects solves for challenges in this module after the module launched in this dojo.

    Rank Hacker Badges Score