Posts

Error and type of error

Error   Errors are the problems or the faults that occur in the program, which makes the behavior of the program abnormal, and experienced developers can also make these faults.  Programming errors are also known as the bugs or faults, and the process of removing these bugs is known as  debugging . There are mainly five types of errors exist in C programming: Syntax error Run-time error Linker error Logical error Semantic error Syntax error:- Syntax errors are also known as the compilation errors as they occurred at the compilation time, or we can say that the syntax errors are thrown by the compilers.  These errors are mainly occurred due to the mistakes while typing or do not follow the syntax of the specified programming language.  These mistakes are generally made by beginners only because they are new to the language.  These errors can be easily debugged or corrected.   example:   If we want to declare the varia...

Problem solving using computer

Image
   A) Problem solving using computers:- Number of problem in our daily life. Suppose we have to calculate simple Interest Suppose we have to prepare a mark sheet. A computer is a DUMB machine. A computer  cannot do anything alone without software i.e. Program  A Software is  set of set programs written to solve a particular problem. Software is a set of instructions on the basis of of which computer gives output/result. If the instructions are not correct, the computer gives wrong result. Never Ever Forget:- Just writing code  is not sufficient to solve a problem. Program must be planned before coding in any computer language available There are many activities to be done before and after writing code. Stage while solving a problem using Computer:- Problem Analysis Algorithm Development Flowcharting Coding  Compilation and Execution  Debugging and Testing  Documentation  1)Problem Analysis:- Process of  becoming familiar  wit...