Professional Documents
Culture Documents
12
Examples of Programs:
• Microsoft Word
• Adobe Photoshop
• Skype
scanf
printf
(), {}, “ “ ;
• Programs written in high level languages are shorter than low level
languages
Shorter Programs • One instruction of high level language is equivalent to many
instructions of low level language
#include<stdio.h> 010101011010010110
#include<conio.h> 101010011101010101
void main() {
011101010101010010
printf(“I Love Pakistan”);
} 101110101010101101
010101010111011110
#include<stdio.h> 010101011010010110
#include<conio.h> 101010011101010101
void main() {
011101010101010010
printf(“I Love Pakistan”);
} 101110101010101101
010101010111011110
• Translate one statement of source code / program and executes it and then next statement is
translated and this goes on until end of the program
• If there is an error in the program statement, the interpreter stops working and displays the error
message
Convert high level program that can be executed Convert high level language program each time is
many times executed
Displays syntax error after compiling the whole Display the syntax error on each instruction of the
program program
Provides many facilities in easier way that are difficult to use in low-level languages
2. Well-Structured Language
Select Compile>Compile
Enter the path for output directory like "C:\MyPrograms" in Output Directory field.
Enter the path for Source directory like "C:\MyPrograms" in Output Directory field.
Click OK. The new setting will be applied
• Header files stdio.h contains information about standard input and output function such as scanf and printf
Example
# define PI 3.141593
Debugging
• Process of finding and removing
• The errors msut be removed from the program before it can be
compiled and executed
The user needs to review the whole program to find out logical error