c language tutorial

Object and executable code in C Language

Source code is the C program that you write in your editor and save with a ‘ .C ‘ extension. Which is un-compiled (when written for the first time or whenever a change is made in it and saved). Object code is the output of a compiler after it processes the source code. The object […]

Syntax and logical errors in compilation in C Language

As such, C programming does not provide direct support for error handling but being a system programming language, it provides you access at lower level in the form of return values. Most of the C or even Unix function calls return -1 or NULL in case of any error and set an error code errno. […]

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)

1 10 11 12 13