Advanced Topics in C: Using Strings, Header Files, & Type Conversions

C 17    |    Expert
  • 15 videos | 1h 45m
  • Includes Assessment
  • Earns a Badge
Rating 4.2 of 59 users Rating 4.2 of 59 users (59)
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 course
    Outline the process of creating strings in character arrays
    Create strings as pointers
    Create shallow and deep copies of strings
    Identify issues with storing strings as pointers
    Add strings to character pointers
    Compare strings using strcmp() and strcasecmp()
    Outline how to create header files and use functions from them
  • Reference user-defined header files
    Add guardrails against multiple inclusions for header files
    Identify key components of type conversion in c
    Identify implicit type conversions
    Identify the results of performing explicit type conversions
    Use command-line input arguments
    Summarize the key concepts covered in this course

IN THIS COURSE

  • 2m 8s
  • 7m 38s
    Find out how to create strings in character arrays. FREE ACCESS
  • Locked
    3.  Creating Char* Pointers to Represent Strings
    8m 22s
    In this video, learn how to create pointers to strings. FREE ACCESS
  • Locked
    4.  Creating Copies of Strings
    8m 39s
    In this video, you will learn how to create shallow and deep copies of strings in Python. FREE ACCESS
  • Locked
    5.  Exploring Errors When Storing Strings in Pointers
    4m 20s
    Find out how to identify issues with storing strings as pointers. FREE ACCESS
  • Locked
    6.  Using the Strcat() Function
    6m 20s
    During this video, you will learn how to add strings to character pointers. FREE ACCESS
  • Locked
    7.  Comparing Equality of Strings
    6m 47s
    In this video, find out how to compare strings using strcmp() and strcasecmp(). FREE ACCESS
  • Locked
    8.  Introducing Custom Header Files
    8m 13s
    In this video, you will learn how to create header files and use functions from them. FREE ACCESS
  • Locked
    9.  Using User-defined Header Files
    6m 53s
    In this video, you will learn how to reference user-defined header files. FREE ACCESS
  • Locked
    10.  Preventing Header Files from Being Included Twice
    7m 51s
    In this video, you will add guardrails to prevent header files from being included multiple times. FREE ACCESS
  • Locked
    11.  Type Conversion in C
    9m 30s
    In this video, you will learn how to identify key components of type conversion in C programming. FREE ACCESS
  • Locked
    12.  Exploring Implicit Type Conversions
    7m 7s
    In this video, you will identify implicit type conversions. FREE ACCESS
  • Locked
    13.  Performing Type Casts
    6m 41s
    Find out how to identify the results of performing explicit type conversions. FREE ACCESS
  • Locked
    14.  Accepting Command Line Input Arguments
    10m 22s
    In this video, find out how to use command line input arguments. FREE ACCESS
  • Locked
    15.  Course Summary
    4m 10s
    cd848c9f-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.

YOU MIGHT ALSO LIKE

Rating 4.8 of 10 users Rating 4.8 of 10 users (10)
Rating 4.7 of 9 users Rating 4.7 of 9 users (9)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 3.6 of 13 users Rating 3.6 of 13 users (13)
Rating 4.3 of 1115 users Rating 4.3 of 1115 users (1115)
Rating 4.6 of 85 users Rating 4.6 of 85 users (85)