From the course: Advanced C Programming: Optimize Performance and Efficiency
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Challenge: Displaying an array - C Tutorial
From the course: Advanced C Programming: Optimize Performance and Efficiency
Challenge: Displaying an array
(upbeat electronic music) - [Instructor] For this challenge, you are to create a character array, a string, determine the string's length, then loop through the string displaying each character using pointer notation, not array notation. Don't increment the pointer. Instead, use the loop value to display each successive character until the entire string is displayed. Give yourself about 20 minutes to complete this challenge.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
When to use the ampersand operator4m 20s
-
(Locked)
How to bind the asterisk operator4m 51s
-
(Locked)
Challenge: Incrementing a pointer23s
-
(Locked)
Solution: Incrementing a pointer1m 10s
-
(Locked)
Understanding arrays and pointers4m 4s
-
(Locked)
Challenge: Displaying an array29s
-
(Locked)
Solution: Displaying an array54s
-
(Locked)
Obeying the order of precedence6m 27s
-
(Locked)
-