From the course: Complete Guide to C Programming Foundations

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Challenge: Write your own code

Challenge: Write your own code - C Tutorial

From the course: Complete Guide to C Programming Foundations

Challenge: Write your own code

(bright music) - [Instructor] Here's your challenge to see how well you understand C programming so far. Yes, you can do this. Create a source code file. A sample file is provided in the exercise files, though it's empty. Include the stdio.h header file. Write the main function. Add a puts statement that outputs a string such as, "I am a C programmer." Add the return statement. And here are some things to remember as you code this first program. All C language statements end with a semicolon. The main function statements are enclosed in braces or curly brackets. This exercise should take you about five minutes to complete.

Contents