Brandon Barker, Ben Trumbore (revisions)
Cornell Center for Advanced Computing

Revisions: 9/2022, 8/2021, 9/2014, 2011 (original)

C programs always contain a "main" function and usually contain some "include" directives and comments. Additionally, most programs will define and use variables of different types and use them in mathematical expressions. These basic topics are covered in this section.

Objectives

After you complete this segment, you should be able to:

  • Construct a basic C program that prints a message
  • Name and describe the variable types in C
  • Name many of the mathematical operators in C
Prerequisites

There are no formal prerequisites for learning C beyond basic computer operations.

 
©   Cornell University  |  Center for Advanced Computing  |  Copyright Statement  |  Inclusivity Statement