Advanced Topics in C: Using Strings, Header Files, & Type Conversions
C 17
| Expert
- 15 videos | 1h 45m
- Includes Assessment
- Earns a Badge
Strings are the most fundamental way of representing text in any programming language. In C, they take the form of character arrays, delimited with a special character. Because of the equivalence between arrays and pointers in C, strings can also be represented using character pointers. Start this course by creating strings as arrays of characters, observing that the end of a string is delimited using the \0 character. Discover how strings are stored in character pointers and iterate over strings with pointer arithmetic and use the strlen(), strcpy(), strcmp() and strcasecmp() functions. Next, learn how to create header files and use the #include preprocessor directive to pull in both system and user-created header files. Explore type conversions and learn about implicit conversions. Finally, explore command line arguments including the use of argc and argv, and how these can be used in your C programs. Upon completion, you'll be able to to work with C strings using character arrays, library functions, and header files, perform type conversions, and use command line arguments in C programs.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseOutline the process of creating strings in character arraysCreate strings as pointersCreate shallow and deep copies of stringsIdentify issues with storing strings as pointersAdd strings to character pointersCompare strings using strcmp() and strcasecmp()Outline how to create header files and use functions from them
-
Reference user-defined header filesAdd guardrails against multiple inclusions for header filesIdentify key components of type conversion in cIdentify implicit type conversionsIdentify the results of performing explicit type conversionsUse command-line input argumentsSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 8s
-
7m 38sFind out how to create strings in character arrays. FREE ACCESS
-
8m 22sIn this video, learn how to create pointers to strings. FREE ACCESS
-
8m 39sIn this video, you will learn how to create shallow and deep copies of strings in Python. FREE ACCESS
-
4m 20sFind out how to identify issues with storing strings as pointers. FREE ACCESS
-
6m 20sDuring this video, you will learn how to add strings to character pointers. FREE ACCESS
-
6m 47sIn this video, find out how to compare strings using strcmp() and strcasecmp(). FREE ACCESS
-
8m 13sIn this video, you will learn how to create header files and use functions from them. FREE ACCESS
-
6m 53sIn this video, you will learn how to reference user-defined header files. FREE ACCESS
-
7m 51sIn this video, you will add guardrails to prevent header files from being included multiple times. FREE ACCESS
-
9m 30sIn this video, you will learn how to identify key components of type conversion in C programming. FREE ACCESS
-
7m 7sIn this video, you will identify implicit type conversions. FREE ACCESS
-
6m 41sFind out how to identify the results of performing explicit type conversions. FREE ACCESS
-
10m 22sIn this video, find out how to use command line input arguments. FREE ACCESS
-
4m 10scd848c9f-6d0c-4c06-9a31-a2672793c7b7 FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.