Getting Started
Brandon Barker, Ben Trumbore (revisions)
Cornell Center for Advanced Computing
Revisions: 6/2024, 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
|
Access Statement
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)
CVW material development is supported by NSF OAC awards 1854828, 2321040, 2323116 (UT Austin) and 2005506 (Indiana University)