learn c language

Structure of C program, writing and executing the first C program,

Before we study the basic building blocks of the C programming language, let us look at a bare minimum C program structure so that we can take it as a reference in the upcoming chapters. Hello World Example A C program basically consists of the following parts − Preprocessor Commands Functions Variables Statements & Expressions […]

Pseudocode in C Language

Factorial of a positive integer n is product of all values from n to 1. For example, the factorial of 3 is (3 * 2 * 1 = 6). Algorithm Algorithm of this program is very easy − START Step 1 → Take integer variable A Step 2 → Assign value to the variable Step […]

Flowchart in C Language

Flowchart is a diagrammatic representation of sequence of logical steps of a program. Flowcharts use simple geometric shapes to depict processes and arrows to show relationships and process/data flow. Flowchart Symbols Here is a chart for some of the common symbols used in drawing flowcharts. Symbol Symbol Name Purpose Start/Stop Used at the beginning and […]

Algorithm in C Language

Algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get the desired output. Algorithms are generally created independent of underlying languages, i.e. an algorithm can be implemented in more than one programming language. From the data structure point of view, following are some important categories […]

Concept of assembler, compiler, interpreter, loader and linker.

Computers are a balanced mix of software and hardware. Hardware is just a piece of mechanical device and its functions are being controlled by a compatible software. Hardware understands instructions in the form of electronic charge, which is the counterpart of binary language in software programming. Binary language has only two alphabets, 0 and 1. […]

Operating System

The Operating System is a program with the following features − An operating system is a program that acts as an interface between the software and the computer hardware. It is an integrated set of specialized programs used to manage overall resources and operations of the computer. It is a specialized software that controls and […]

Storage

Memory unit is the amount of data that can be stored in the storage unit. This storage capacity is expressed in terms of Bytes.

I/O Devices or Input/Output Devices

Following are some of the important input devices which are used in a computer. Ex:- Keyboard, Mouse, Joy Stick, Light pen, Track Ball, Scanner, Graphic Tablet, Microphone, Magnetic Ink Card Reader(MICR), Optical Character Reader(OCR), Bar Code Reader, Optical Mark Reader(OMR)

Processor

Central Processing Unit (CPU) consists of the following features. CPU is considered as the brain of the computer. CPU performs all types of data processing operations. It stores data, intermediate results, and instructions (program). It controls the operation of all parts of the computer.

Memory

Computer memory is the storage space in the computer,where data is to be processed and instructions required for processing are stored. The memory is divided into large number of small parts called cells. Each location or cell has a unique address, which varies from zero to memory size minus one.

1 10 11 12