CSC 202 Computer Programming. What is Program ? Program is a set of instruction that a machine follows. What is Programming? Programming is to make machine work. Programming creates instruction set that a machine follows. Program has typically 3 parts: Input Process Output
What is Program ?
Program is a set of instruction that a machine follows.
What is Programming?
Programming is to make machine work. Programming creates instruction set that a machine follows.
Softwares are of two kinds
1. Application Software 2. Operating system
Windows Media player
C++/ Visual C++
Popular Web Programming languages:
CSC 202 Computer Programming
Programming LanguageProgramming languages are used to write programs.Some of these languages are quite similar to human language.Programs are of two kinds: Desktop application and Web application. As an example we can say MS Word is desktop application whereas Yahoo mail is a web application.
C’s popularity became widespread in 1980s.
Father of other modern languages
Why do we choose C?
C is easier to learn
C program runs on almost all the Operating Systems
C program takes less time to run.
C programmer can easily switch to any language.
CSC 202 Computer ProgrammingIntroduction to C
int a, b, sum;
printf(“Sum is %d \n”,sum);
A function is a block instructions
A program contains one or more functions
Each program has a function named “main” and a program starts execution from main function.
Note: For the time being, all our programs will have only one function that is main.
CSC 202 Computer ProgrammingFunctions