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 LanguageComputer 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 LanguageMemory 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 LanguageCentral 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.
I/O Devices or Input/Output Devices
C LanguageFollowing 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 LanguageThe 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 in C Language
C LanguageAlgorithm is a step-by-step procedure, which defines a set of instructions to be executed in a certain order to get […]
Flowchart in C Language
C LanguageFlowchart is a diagrammatic representation of sequence of logical steps of a program. Flowcharts use simple geometric shapes to depict […]
Pseudocode in C Language
C LanguageFactorial 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 […]
Object and executable code in C Language
C LanguageSource code is the C program that you write in your editor and save with a ‘ .C ‘ extension. […]
Components of C language
C LanguageYou have seen the basic structure of a C program, so it will be easy to understand other basic building […]
Standard I/O in C Language
C LanguageWhen we say Input, it means to feed some data into a program. An input can be given in the […]
Fundamental data types in C Language
C LanguageData types in c refer to an extensive system used for declaring variables or functions of different types. The type […]
Variables and memory locations in C Language
C LanguageA variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in […]
Storage classes in C Language
C LanguageA storage class defines the scope (visibility) and life-time of variables and/or functions within a C Program. They precede the […]
Operators in C Language
C LanguageAn operator is a symbol that tells the compiler to perform specific mathematical or logical functions. C language is rich […]
Type conversion in C Language
C LanguageType 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 […]
Control Statements in C Language
C LanguageDecision making structures require that the programmer specifies one or more conditions to be evaluated or tested by the program, […]
if statement in C Language
C LanguageAn if statement consists of a Boolean expression followed by one or more statements. Syntax The syntax of an ‘if’ […]
switch statement in C Language
C LanguageA switch statement allows a variable to be tested for equality against a list of values. Each value is called […]
Loops in C Language
C LanguageYou may encounter situations, when a block of code needs to be executed several number of times. In general, statements […]
while loop in C Language
C LanguageA while loop in C programming repeatedly executes a target statement as long as a given condition is true. Syntax […]
do while loop in C Language
C LanguageUnlike for and while loops, which test the loop condition at the top of the loop, the do…while loop in […]
for loop in C Language
C LanguageA for loop is a repetition control structure that allows you to efficiently write a loop that needs to execute […]
multiple loop variables in C Language
C LanguageC programming allows to use one loop inside another loop. The following section shows a few examples to illustrate the […]
break statement in C Language
C LanguageThe break statement in C programming has the following two usages − When a break statement is encountered inside a […]
continue statement in C Language
C LanguageThe continue statement in C programming works somewhat like the break statement. Instead of forcing termination, it forces the next […]
Function Introductions in C Language
C LanguageA function is a group of statements that together perform a task. Every C program has at least one function, […]
Types of functions in C Language
C Languagefunctions with array in C Language
C LanguageIf 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 […]
Call by value in C Language
C LanguageThe call by value method of passing arguments to a function copies the actual value of an argument into the […]
Call by reference in C Language
C LanguageThe call by reference method of passing arguments to a function copies the address of an argument into the formal […]
Recursive functions in C Language
C LanguageRecursion is the process of repeating items in a self-similar way. In programming languages, if a program allows you to […]
Multi dimensional arrays in C Language
C LanguageC programming language allows multidimensional arrays. Here is the general form of a multidimensional array declaration − type name[size1][size2]…[sizeN]; For […]
Character arrays in C Language
C Languagearray of characters terminated by a null character ‘\0’. Thus a null-terminated string contains the characters that comprise the string […]
Strings in C Language
C LanguageStrings 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.
Structure in C Language
C LanguageArrays allow to define type of variables that can hold several data items of the same kind. Similarly structure is […]
Union in C Language
C LanguageA union is a special data type available in C that allows to store different data types in the same […]
Enumerated data types in C Language
C LanguageArray of structures in C Language
C LanguagePointers to Structures You can define pointers to structures in the same way as you define pointer to any other […]
Passing arrays to functions in C Language
C LanguageIf you want to pass a single-dimension array as an argument in a function, you would have to declare a […]
Searching in C Language
C LanguageSearching 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
Sorting in C Language
C LanguageBasic Sorting Algorithms (Bubble, Insertion and Selection),
Finding roots of equations in C Language
C LanguageNotion of order of complexity in C Language
C LanguageIntroduction, declaration, applications, Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily […]
Dynamic memory allocation in C Language
C LanguageThis 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 […]
Notion of linked list (no implementation)
C LanguageFile I/O functions in C Language
C LanguageThe last chapter explained the standard input and output devices handled by C programming language. This chapter cover how C […]
Standard C preprocessors in C Language
C LanguageThe C Preprocessor is not a part of the compiler, but is a separate step in the compilation process. In […]
Defining and calling macros in C Language
C LanguageCommand line arguments in C Language
C LanguageIt 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 […]
Manipulating array elements in C Language
C LanguageAn 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
C LanguageMarks Average Program in C Language
Sum of array elements Program in C
C LanguageWAP that simply takes elements of the array from the user and finds the sum of these elements.
ASCII and Unicode
C LanguageASCII defines 128 characters, which map to the numbers 0–127. Unicode defines (less than) 221 characters, which, similarly, map to […]