
C Tutorial
This tutorial is designed for software programmers with a need to understand the C programming language starting from scratch. This C tutorial will give you enough understanding on C programming …
For Loop in C - Online Tutorials Library
Most programming languages including C support the for keyword for constructing a loop. In C, the other loop-related keywords are while and do-while. Unlike the other two types, the for loop is called an …
Assignment Operators in C - Online Tutorials Library
In C language, the assignment operator stores a certain value in an already declared variable. A variable in C can be assigned the value in the form of a literal, another variable, or an expression.
Switch Statement in C - Online Tutorials Library
A switch statement in C simplifies multi-way choices by evaluating a single variable against multiple values, executing specific code based on the match. It allows a variable to be tested for equality …
File Handling in C - Online Tutorials Library
File handling in C is the process of handling file operations such as creating, opening, writing data, reading data, renaming, and deleting using the C language functions. With the help of these …
Enumeration (or enum) in C - Online Tutorials Library
C enumeration (enum) is an enumerated data type that consists of a group of integral constants. Enums are useful when you want to assign user-defined names to integral constants. The enum keyword is …
Typedef in C - Online Tutorials Library
The C programming language provides a keyword called typedef to set an alternate name to an existing data type. The typedef keyword in C is very useful in assigning a convenient alias to a built-in data …
Unions in C - Online Tutorials Library
A union is a special data type available in C that allows to store different data types in the same memory location. You can define a union with many members, but only one member can contain a value at …
Program To Calculate Average In C - Online Tutorials Library
An average of set of numbers is their sum divided by their quantity. It can be defined as − average = sum of all values / number of values Here we shall learn how to programmatically calculate average. …
Pointers in C - Online Tutorials Library
To use the pointers in C language, you need to declare a pointer variable, then initialize it with the address of another variable, and then you can use it by dereferencing to get and change the value of …