Thursday, December 9, 2010

COMPUTER BUS:

COMPUTER BUS
A bus line, or simple bus, is an electrical pathway through which bits are transmitted within the CPU and between the CPU and other devices in the system units. There are different types of buses e.g. address bus, control bus, data bu, but for our purposes the most important is the expansion bus, which carries data between RAM and the expansion slots. to obtain faster performance Some users will use a bus that avoids RAM altogether. A bus that connects expansion slots directly to the CPU is called a local bus.

TYPE OF ERROR IN C LANGUAGE (C Language)

There are three type of the error occur in C language
1. Syntax Error
2. Logical Errors
3. Run Time Error

SYNTAX ERROR
Rules for writing c program is called syntax. All the c statement written according to these rules. Syntax error occur when an invalid statement is written in program. The compiler detects syntax errors and display error message to describe the cause of error. A program containing syntax errors cannot be complied successfully.
LOGICAL ERRORS
Poor Logic of the programmer is create logical error. If programmer writes a wrong formula to calculate the result, it is an example of logical error.
RUN-TIME ERRORS
It's type of error occurs when a statement directs the computer to execute an illegal operation such as dividing a number by zero.