From the course: Advanced C Programming: Optimize Performance and Efficiency
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Challenge: Setting up a static variable - C Tutorial
From the course: Advanced C Programming: Optimize Performance and Efficiency
Challenge: Setting up a static variable
“
(upbeat music) - [Instructor] Your challenge is to write a function that returns an array of the first five primes. That would be 2, 3, 5, 7, and 11. Have the main function display those values. This challenge should take you about 10 minutes to complete.
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)
-
-
-