CHAPTER 1
GETTING STARTED WITH C

[IMAGE: An Quarter-Size Version of The Joy of C Front Cover]

This chapter is a gentle introduction to C. We begin with a pair of simple programs: one prints a welcoming message, the other calculates the actual cost of purchasing a set of items. We describe these programs in great detail and provide several variants of each. Along the way we introduce the basics of C program organization, the process of compilation and linking, and several fundamental language features: the printf function for performing formatted output, variable declaration and assignment, and the arithmetic operators.


Jump to: [Next Chapter]


  1. AN INTRODUCTION TO C
  2. A FIRST C PROGRAM
  3. COMPILING AND RUNNING C PROGRAMS
  4. IMPROVING OUR INITIAL PROGRAM: COMMENTS
  5. FURTHER IMPROVING OUR INITIAL PROGRAM
  6. A SECOND C PROGRAM
  7. IMPROVING OUR SECOND PROGRAM


Objectives



ù��° ���α׷�

������ �̸��� ����ϴ� C ���α׷�

#include <stdio.h>
main()
{
   printf("������, �ȳ�!");
}