Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword or section
Like this
2Activity

Table Of Contents

Computers
An Introduction to Computers
Hardware and Software
Data and Information
Data Processing
Programming Languages
What is Programming?
From Problem to Program
A look at C
Making C Run
Creating C Programs
What Comprises a C Program?
The Advantages of C
The Disadvantages of C
A First C Program
The Program Example
#include
<stdio.h>
void
main
( void )
float
scanf
"%f",
&height
scanf ( "%f", &width ) ;
area = 2 * height * width ;
wood_length = 2 * ( height + width ) * 3.25 ;
printf
( "The area of glass needed is : %f metres. \n",
area ) ;
printf ( "The length of wood needed is : %f feet.\n", wood_length ) ;
Punctuation
Variables
Variables and Data
Types of Variables
Declaration
int variables
float variables
char variables
Missing Types
Variable Declaration
Giving Values to Variables
Expressions
Types of Data in Expressions
Getting Values into the Program
Writing a Program
Comments
Program Flow
Conditional Execution - if
Conditions and Relational Operators
Combining Logical Operators
Lumping Code Together
Magic Numbers and #define
Loops
Breaking Out of Loops
Going Back to the Top of a Loop
More Complicated Decisions
Complete Glazing Program
Operator Shorthand
Statements and Values
Neater Printing
Functions
Functions So Far
Function Heading
Function Body
return
Calling a Function
Scope
Variables Local to Blocks
Full Functions Example
Pointers
NULL Pointers
Pointers and Functions
Static Variables
Arrays
Why We Need Arrays
Sorting
Array Types and Sizes
More Than One Dimension
Switching
Making Multiple Decisions
Strings
How long is a piece of string?
Putting Values into Strings
Using Strings
Bomb Proof Input
Structures
What is a Structure?
How Structures Work
Pointers to structures
Defining your own Types
Files
When do we use Files?
Streams and Files
fopen and fclose
Mode String
File Functions
fread and fwrite
The End of the File and Errors
Memory
Fetching Memory
malloc
free
The heap
C and Large Programs
Building Large Programs in C
The Compile and Link Process
Referring to External Items
The Make Program
Projects
The C Pre-Processor
The #include Directive
Conditional Compilation
A Sample Project
The Problem
The Data Structure
Program Files
The Most Important Bit!
This is the most important bit!
0 of .
Results for:
No results containing your search query
P. 1
C Programming

C Programming

Ratings: (0)|Views: 53 |Likes:
Published by star893190

More info:

Published by: star893190 on Mar 19, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/19/2011

pdf

text

original

You're Reading a Free Preview
Pages 4 to 62 are not shown in this preview.
You're Reading a Free Preview
Pages 66 to 85 are not shown in this preview.
You're Reading a Free Preview
Pages 89 to 94 are not shown in this preview.

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->