-
Course
- Core Tech
C Foundations: Arrays and Strings
Arrays are a fundamental data structure in C programs and are the foundation for strings. This course will teach you how to work with arrays and strings in C.
What you'll learn
Arrays are a fundamental data structure in C programs. They are the foundation on which more complex or specific data structures are built, including strings. In this course, C Foundations: Arrays and Strings, you’ll learn how to proficiently work with arrays and strings in your C programs. First, you’ll explore the basics of arrays, how to create and initialize them, their memory layout, how to dynamically allocate them, and some of their associated pitfalls. Next, you’ll discover how strings in C are basically a special application of arrays, with the key addition of a null-terminator. Finally, you’ll learn how to work with strings in C, including basic operations like copying strings, duplicating them, understanding string pointer syntax, and the concept of shallow vs. deep copy. When you’re finished with this course, you’ll have the skills and knowledge needed to use arrays and strings in your C code to implement common operations.
Table of contents
About the author
Giovanni Dicanio is a computer programmer specialized in both cross-platform C and C++, and Windows operating system development. He is a Microsoft MVP for Visual C++. He also blogs on msmvps.com/gdicanio.
More Courses by Giovanni