Professional Documents
Culture Documents
Class 05
Class 05
Class 05
Class 05
Introduction to the C Language
Objectives
Class 05 1
it is used by software developers whose applications have to run on many different
hardware platforms.
Comments
Class 05 2
First character must be alphabetic character or underscore.
Class 05 3
#include <stdio.h>
printf("Name please: );
scanf("%s", name);
printf("Please enter three numbers:");
scanf("%d %d %d, &a, &b, &c);
prod = a*b*c;
printf("%s The product is %d\n", prod);
return 0;
}
Class 05 4
filename.c yung source code, then filename.exe ‘yung executive
titignan mo ung output, aanalyze mo to make that program show that ganon
C Language Programming
Introduction
C is a general purpose language which is very closely associated with UNIX for
which it was developed in Bell Laboratories
Most of the programs of UNIX are written and run with the help of ‘C’
Many of the important ideas of ‘c’ stem are from BCPL by Martin Richards.
C is a powerful language
Functions
Statements
Expressions
Structure of C Programs
Class 05 5
before going and reading the structure of C programs we need to have a basic
knowledge of the followiung:
C’s keyword
The Keywords
Class 05 6
Class 05 7
Class 05 8