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

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.

Contents