Monday, October 23, 2006

C PROGRAM AND CONTENTS

C is a general-purpose, procedural, imperative computer programming language developed in the early 1970s by Dennis Ritchie for use on the Unix operating system. It has since spread to many other operating systems, and is now one of the most widely used programming languages. C also has had a great influence on many other popular languages, especially C++ which was originally designed as an enhancement to C. It is the most commonly used programming language for writing system software, though it is also widely used for writing applications.

Contents

Introduction
A Simple C Program
A Working C Program; Variables; Types and Type Declarations
Constants
Simple I/O -- getchar, putchar, printf
If; relational operators; compound statements
While Statement; Assignment within an Expression; Null Statement
Arithmetic
Else Clause; Conditional Expressions
Increment and Decrement Operators
Arrays
Character Arrays; Strings
For Statement
Functions; Comments
Local and External Variables
Pointers
Function Arguments
Multiple Levels of Pointers; Program Arguments
The Switch Statement; Break; Continue
Structures
Initialization of Variables
Scope Rules: Who Knows About What
#define, #include
Bit Operators
Assignment Operators
Floating Point

0 Comments:

Post a Comment

<< Home