Learn C Language(C Language Tutorials or Study C Language)

C is procedural/structured programming language. C language was mainly developed as a system programming language to write an operating system. C language include low-level access to memory, a simple set of keywords and clean style. C languag is a general-purpose computer programming language developed by Dennis M. Ritchie in 1972.

Memory

C Language

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.

Storage

C Language

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

Processor

C Language

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.

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)

Operating System

C Language

The Operating System is a program with the following features − An operating system is a program that acts as […]

Computers are a balanced mix of software and hardware. Hardware is just a piece of mechanical device and its functions […]

Algorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get […]

Flowchart is a diagrammatic representation of sequence of logical steps of a program. Flowcharts use simple geometric shapes to depict […]

Factorial of a positive integer n is product of all values from n to 1. For example, the factorial of […]

Before we study the basic building blocks of the C programming language, let us look at a bare minimum C […]

As such, C programming does not provide direct support for error handling but being a system programming language, it provides […]

Source code is the C program that you write in your editor and save with a ‘ .C ‘ extension. […]

You have seen the basic structure of a C program, so it will be easy to understand other basic building […]

When we say Input, it means to feed some data into a program. An input can be given in the […]

Data types in c refer to an extensive system used for declaring variables or functions of different types. The type […]

A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in […]

A storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the […]

An operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C language is rich […]

Type casting is a way to convert a variable from one data type to another data type. For example, if […]

Operators Precedence in C Operator precedence determines the grouping of terms in an expression and decides how an expression is […]

Decision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, […]

An if statement consists of a Boolean expression followed by one or more statements. Syntax The syntax of an ‘if’ […]

A switch statement allows a variable to be tested for equality against a list of values. Each value is called […]

You may encounter situations, when a block of code needs to be executed several number of times. In general, statements […]

A while loop in C programming repeatedly executes a target statement as long as a given condition is true. Syntax […]

Unlike for and while loops, which test the loop condition at the top of the loop, the do…while loop in […]

A for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute […]

C programming allows to use one loop inside another loop. The following section shows a few examples to illustrate the […]

The break statement in C programming has the following two usages − When a break statement is encountered inside a […]

The continue statement in C programming works somewhat like the break statement. Instead of forcing termination, it forces the next […]

A function is a group of statements that together perform a task. Every C program has at least one function, […]

If you want to pass a single-dimension array as an argument in a function, you would have to declare a […]

If a function is to use arguments, it must declare variables that accept the values of the arguments. These variables […]

The call by value method of passing arguments to a function copies the actual value of an argument into the […]

The call by reference method of passing arguments to a function copies the address of an argument into the formal […]

Recursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to […]

C programming language allows multidimensional arrays. Here is the general form of a multidimensional array declaration − type name[size1][size2]…[sizeN]; For […]

array of characters terminated by a null character ‘\0’. Thus a null-terminated string contains the characters that comprise the string […]

Strings are actually one-dimensional array of characters terminated by a null character . Thus a null-terminated string contains the characters that comprise the string followed by a null.

Arrays allow to define type of variables that can hold several data items of the same kind. Similarly structure is […]

A union is a special data type available in C that allows to store different data types in the same […]

Pointers to Structures You can define pointers to structures in the same way as you define pointer to any other […]

If you want to pass a single-dimension array as an argument in a function, you would have to declare a […]

Searching in C Language has to check for an element or retrieve an element from any data structure where the data is stored. Based on the type of search operation, there are generally two algorithms defined in C:
1- Linear Search or Sequential Search, 2- Binary Search

Basic Sorting Algorithms (Bubble, Insertion and Selection),

Introduction, declaration,  applications, Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily […]

This chapter explains dynamic memory management in C. The C programming language provides several functions for memory allocation and management. […]

You can define pointers to structures in the same way as you define pointer to any other variable − struct […]

The last chapter explained the standard input and output devices handled by C programming language. This chapter cover how C […]

The C Preprocessor is not a part of the compiler, but is a separate step in the compilation process. In […]

It is possible to pass some values from the command line to your C programs when they are executed. These […]

Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An […]

An element is accessed by indexing the array name. This is done by placing the index of the element within […]

Marks Average Program in C Language

WAP that simply takes elements of the array from the user and finds the sum of these elements.

ASCII and Unicode

C Language

ASCII defines 128 characters, which map to the numbers 0–127. Unicode defines (less than) 221 characters, which, similarly, map to […]