From the course: Advanced C Programming: Optimize Performance and Efficiency
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Challenge: Specifying a cast - C Tutorial
From the course: Advanced C Programming: Optimize Performance and Efficiency
Challenge: Specifying a cast
(upbeat bouncy music) - [Narrator] For this challenge, you need to code a program that prompts the user to input an integer value and store it in an integer variable. Then, use the percentf placeholder in a printf statement to display that variable's value, accurate to one digit after the decimal. Completing this exercise should take you around 15 minutes.
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)
Set up an external variable4m 16s
-
(Locked)
Typecast variables4m 46s
-
(Locked)
Challenge: Specifying a cast26s
-
(Locked)
Solution: Specifying a cast51s
-
(Locked)
Take advantage of static variables3m 20s
-
(Locked)
Challenge: Setting up a static variable23s
-
(Locked)
Solution: Setting up a static variable54s
-
(Locked)
-
-
-