Professional Documents
Culture Documents
Unit1 Section2 PSAP
Unit1 Section2 PSAP
What is C
double
The First C Program
/* Calculation of Simple Interest*/
// This is Simple Program
#include<stdio.h> // Header File
In the First Program the values of p,n,r are fixed. These can be changed by
scanf at runtime as follows:
printf(“ \nEnter the Value of Principal(P)\t”);
scanf(“%d”,&p);
printf(“ \nEnter the Value of n\t”);
scanf(“%d”,&n);
printf(“ \nEnter the Value Rate of Interest n\t”);
scanf(“%f”,&r);
Printing Values
• The translation of single statement of source program into machine code is done by
language processor and executes it immediately before moving on to the next line is
called an interpreter.
• Loader
• Loader is a part of operating system and is responsible for loading executable files into
memory and execute them.
• It calculates the size of a program (instructions and data) and create memory space for it.
It initializes various registers to initiate execution.
What is a bug?
A bug in software is a flaw, error, fault, or failure that causes the software to fail to
perform designated tasks.
In simple words, when we make an error during coding, we call it a bug.
We measure the impact of a bug on the software by means of two parameters,
namely – Severity and Priority.
What is debugging?
The process of finding and removing software errors which result in failure of the
software is known as debugging.
The debugging phase starts just after receiving a bug report and ends when that bug
is removed and the program is working correctly.