Learn
Great work getting through these first exercises! Let’s review what was covered:
- C has been around for a while but is still very popular
- Code syntax is a set of rules that are followed when writing code so the program is able to compile
- Errors occur when the syntax is incorrect
- Error messages make a best effort to describe the error and where it occurred
- Use
printf()
to output text to the console - Comments are used to include text in code that the compiler will ignore
- Line comments start with
//
and block comments are surrounded by/* */
- The
gcc
application, or GNU Compiler Collection is a compiler used to compile C programs
Instructions
The Hello World code is once again in the workspace. Feel free to modify it in any way to get new behavior; even if you’re hunting for a new error!
Take this course for free
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.