Knowledge baseExam Center
ENEnglish
Choose language13

Learn C — Intermediate

Process structs, arrays, strings and pointer collections in C. Manage dynamic memory, search, filter and sort data, and build reports with error handling.

COURSE OVERVIEWREADY
Lessons: 93
Quizzes: 16
All steps: 109
$Ready to start
Knowledge base for this technology

What you will learn

  • Create structs and functions that operate on them by value or pointer, and distinguish copying data from sharing memory.
  • Allocate, expand and free memory using malloc, calloc, realloc and free, controlling errors and ownership of dynamic data.
  • Search, filter, sort and aggregate arrays of structs and pointers, accounting for boundaries, empty results and tie-breaking rules.
  • Process strings and multi-level collections, report errors, and check results and operation counts on fixed data.

Course curriculum

Work through the curriculum step by step. Completed stages are marked, and you can open the next available stage.

93 lessons16 quizzes109 steps total
  1. 01LESSON
    LESSON 1: Nested structuresAvailable now
  2. 02LESSON
    LESSON 2: Dynamic allocation of single structures (malloc/free)Locked
  3. 03LESSON
    LESSON 3: Dynamic allocation of arrays of structuresLocked
  4. 04LESSON
    LESSON 4: Dynamic array of pointers to structuresLocked
  5. 05LESSON
    LESSON 5: Growing Dynamic Arrays of Structs (realloc)Locked
  6. 06LESSON
    LESSON 6: Safely Shrinking a Dynamic Array of Structs with reallocLocked
  7. 01QUIZ
    Quiz 1: applying knowledge from lessons 1–6Locked
  8. 07LESSON
    LESSON 7: Functions Operating on Structs via PointersLocked
  9. 08LESSON
    LESSON 8: Functions Operating on Structs by ValueLocked
  10. 09LESSON
    LESSON 9: Pointers to StructsLocked
  11. 10LESSON
    LESSON 10: Copying Structs and Comparing StructsLocked
  12. 11LESSON
    LESSON 11: Sorting Arrays of Structs by NumbersLocked
  13. 12LESSON
    LESSON 12: Sorting Arrays of Structs by StringsLocked
  14. 02QUIZ
    Quiz 2: applying knowledge from lessons 7–12Locked
  15. 13LESSON
    LESSON 13: Sorting arrays of structs by multiple fieldsLocked
  16. 14LESSON
    LESSON 14: Comparing and sorting structs by different rulesLocked
  17. 15LESSON
    LESSON 15: Filtering arrays of structs by numbersLocked
  18. 16LESSON
    LESSON 16: Filtering arrays of structs by stringsLocked
  19. 17LESSON
    LESSON 17: Searching for an element by a numeric fieldLocked
  20. 18LESSON
    LESSON 18: Searching for an element by a text fieldLocked
  21. 03QUIZ
    Quiz 3: applying knowledge from lessons 13–18Locked
  22. 19LESSON
    LESSON 19: Counting occurrences of an element in an array of structuresLocked
  23. 20LESSON
    LESSON 20: Reporting and summaries from arrays of structuresLocked
  24. 21LESSON
    LESSON 21: Operations on text fields in structures (strcmp, strcpy)Locked
  25. 22LESSON
    LESSON 22: Measuring String Lengths in StructuresLocked
  26. 23LESSON
    LESSON 23: Creating Arrays of Pointers to StringsLocked
  27. 24LESSON
    LESSON 24: Filtering Arrays of Pointers to StringsLocked
  28. 04QUIZ
    Quiz 4: applying knowledge from lessons 19–24Locked
  29. 25LESSON
    LESSON 25: Sorting Arrays of Pointers to StringsLocked
  30. 26LESSON
    LESSON 26: Dynamic Memory Allocation and Deallocation for StringsLocked
  31. 27LESSON
    LESSON 27: Changing the Contents of a Dynamic String Array — Modifying and Removing ElementsLocked
  32. 28LESSON
    LESSON 28: A Dynamic Array of Pointers to Strings (char**)Locked
  33. 29LESSON
    LESSON 29: Passing a Pointer to a Pointer to a Function — Modifying a Dynamic List of Ticket LabelsLocked
  34. 30LESSON
    LESSON 30: A Function Returning a Pointer to Dynamically Allocated DataLocked
  35. 05QUIZ
    Quiz 5: applying knowledge from lessons 25–30Locked
  36. 31LESSON
    LESSON 31: Text Analysis: Checking for a PalindromeLocked
  37. 32LESSON
    LESSON 32: Text Analysis — Checking for an IsogramLocked
  38. 33LESSON
    LESSON 33: Custom Functions for Changing Letter Case in Text — toggle_caseLocked
  39. 34LESSON
    LESSON 34: Your own implementation of functions from the string.h libraryLocked
  40. 35LESSON
    LESSON 35: Replacing the first fragment of a text in a new stringLocked
  41. 36LESSON
    LESSON 36: Splitting a text into words and analyzing individual wordsLocked
  42. 06QUIZ
    Quiz 6: applying knowledge from lessons 31–36Locked
  43. 37LESSON
    LESSON 37: Removing selected elements from a dynamic array of structuresLocked
  44. 38LESSON
    LESSON 38: Freeing Dynamic Memory of Structs and StringsLocked
  45. 39LESSON
    LESSON 39: Function Pointers and Their UsesLocked
  46. 40LESSON
    LESSON 40: Passing a Function Pointer as an Argument — Sorting and FilteringLocked
  47. 41LESSON
    LESSON 41: Arrays of Function PointersLocked
  48. 42LESSON
    LESSON 42: Functions Returning a Function PointerLocked
  49. 07QUIZ
    Quiz 7: applying knowledge from lessons 37–42Locked
  50. 43LESSON
    LESSON 43: Function Pointers as Structure FieldsLocked
  51. 44LESSON
    LESSON 44: Choosing an Action Through a Function PointerLocked
  52. 45LESSON
    LESSON 45: A Dynamic Array of Function PointersLocked
  53. 46LESSON
    LESSON 46: Sorting Arrays of Pointers to StructuresLocked
  54. 47LESSON
    LESSON 47: Filtering Structures with a Function Passed as a PointerLocked
  55. 48LESSON
    LESSON 48: Generic Counting of Elements by a Passed FunctionLocked
  56. 08QUIZ
    Quiz 8: applying knowledge from lessons 43–48Locked
  57. 49LESSON
    LESSON 49: Pointers and Dynamic Two-Dimensional ArraysLocked
  58. 50LESSON
    LESSON 50: Sorting Two-Dimensional Arrays of PointersLocked
  59. 51LESSON
    LESSON 51: Implementing Your Own Dynamic Character BufferLocked
  60. 52LESSON
    LESSON 52: Dynamic Handling of Alternately Allocated StructuresLocked
  61. 53LESSON
    LESSON 53: Creating Generic Functions for Different StructuresLocked
  62. 54LESSON
    LESSON 54: Universal sorting by different fields using a function pointerLocked
  63. 09QUIZ
    Quiz 9: applying knowledge from lessons 49–54Locked
  64. 55LESSON
    LESSON 55: Multi-key sorting by several fieldsLocked
  65. 56LESSON
    LESSON 56: Filtering by complex criteriaLocked
  66. 57LESSON
    LESSON 57: Dynamically adding and removing elements in an array of pointersLocked
  67. 58LESSON
    LESSON 58: Recursive Processing of Dynamic StructuresLocked
  68. 59LESSON
    LESSON 59: Dynamic Reporting Based on Several Pointer ArraysLocked
  69. 60LESSON
    LESSON 60: Testing the Correctness of Functions Operating on PointersLocked
  70. 10QUIZ
    Quiz 10: applying knowledge from lessons 55–60Locked
  71. 61LESSON
    LESSON 61: Analyzing and Comparing Pointers to StructuresLocked
  72. 62LESSON
    LESSON 62: Character Pool and Pointer ArrayLocked
  73. 63LESSON
    LESSON 63: Copying Dynamic Pointer ArraysLocked
  74. 64LESSON
    LESSON 64: Passing Growing Pointer Arrays Between FunctionsLocked
  75. 65LESSON
    LESSON 65: Generic Counting of Elements with PointersLocked
  76. 66LESSON
    LESSON 66: Comparing Arrays of Pointers to StringsLocked
  77. 11QUIZ
    Quiz 11: applying knowledge from lessons 61–66Locked
  78. 67LESSON
    LESSON 67: Ordering Data in Arrays of PointersLocked
  79. 68LESSON
    LESSON 68: Filtering, Sorting and Summarizing an Array of InvoicesLocked
  80. 69LESSON
    LESSON 69: Switching Functions via a Pointer to a Function PointerLocked
  81. 70LESSON
    LESSON 70: A Dynamic Cart of Structures and Pricing RulesLocked
  82. 71LESSON
    LESSON 71: Dynamically Growing and Removing Elements in Multi-Level StructuresLocked
  83. 72LESSON
    LESSON 72: Testing the Performance of Pointer OperationsLocked
  84. 12QUIZ
    Quiz 12: applying knowledge from lessons 67–72Locked
  85. 73LESSON
    LESSON 73: Handling NULL Special Cases and Invalid PointersLocked
  86. 74LESSON
    LESSON 74: Organizing Selected Tickets Without CopyingLocked
  87. 75LESSON
    LESSON 75: Operations on Subarrays of Dynamic Pointer ArraysLocked
  88. 76LESSON
    LESSON 76: Passing Dynamic Pointers to Recursive FunctionsLocked
  89. 77LESSON
    LESSON 77: Creating Reports That Aggregate Data from Different StructuresLocked
  90. 78LESSON
    LESSON 78: Dynamic Arrays of Structures Containing PointersLocked
  91. 13QUIZ
    Quiz 13: applying knowledge from lessons 73–78Locked
  92. 79LESSON
    LESSON 79: Data Analysis in Functions Returning Pointers to Dynamic StructuresLocked
  93. 80LESSON
    LESSON 80: Dynamic Arrays of Pointers in a Program Split into PartsLocked
  94. 81LESSON
    LESSON 81: Testing Operations on a Dynamic Array of PointersLocked
  95. 82LESSON
    Price Conversion and Warehouse Data AnalysisLocked
  96. 83LESSON
    LESSON 83: Comparing and Swapping Segments of Dynamic Pointer ArraysLocked
  97. 14QUIZ
    Quiz 14: applying knowledge from lessons 79–83Locked
  98. 84LESSON
    LESSON 84: Dynamic Pointer Arrays — A Catalog with Rows of Different LengthsLocked
  99. 85LESSON
    LESSON 85: Sales Report Using an Array of Pointers to StructuresLocked
  100. 86LESSON
    LESSON 86: Creating Dynamic Pointer Lists of Variable SizeLocked
  101. 87LESSON
    LESSON 87: Safe Dynamic Memory Handling in a Product WarehouseLocked
  102. 88LESSON
    LESSON 88: Text Analysis with Dynamic Arrays and PointersLocked
  103. 15QUIZ
    Quiz 15: applying knowledge from lessons 84–88Locked
  104. 89LESSON
    LESSON 89: Ordering and Aggregating Dynamic Arrays of PointersLocked
  105. 90LESSON
    LESSON 90: Creating and Freeing Multi-Level Dynamic StructuresLocked
  106. 91LESSON
    LESSON 91: Error Handling and Reporting When Working with PointersLocked
  107. 92LESSON
    LESSON 92: Multi-Level Sorting and Filtering of Dynamic StructuresLocked
  108. 93LESSON
    LESSON 93: Deterministic Counting of Pointer OperationsLocked
  109. 16QUIZ
    Quiz 16: applying knowledge from lessons 89–93Locked
  110. +EXAM
    Confirm your skills with an examPreparing with this course is optional. You can choose a certification exam for this language and level without completing the course or quizzes. Check your account access and confirm exam authorization.Other status