C Programming

Filing in C (part 2)

Writing in a File

In this part you will learn: 1. C syntax 2. Filing 3. Writing to a File In this tutorial we will learn about filing in C. Filing is a very important tool in C. In this program we will write data in a file. We will take input from the user and write that data in a file whose name will be entered by the user. Writing in a File Basic Step: Open Dev C++ then File > new > source file and start writing the code below.

Filing in C

Reading From a File

In this part you will learn: 1. C syntax 2. Filing 3. Reading from a file In this tutorial we will learn about filing in C. Filing is a very important tool in C. In this program we will read a file from our computer and display its content on the screen.

Structures in C

Structures in C

In this part you will learn: 1. C syntax 2. Structure variable 3. Structure declaration 4. Structure accessing 5. Showing output

What is a Structure?

Structure is a user-defined data type in C which allows you to combine different data types to store a particular type of record. Structure helps to construct a complex data type in a more meaningful way. Structure helps when you have to store a collection of data of many similar things or people etc. It is somewhat similar to an array.

Functions And Pointers in C Language

Functions and Pointers

In this part you will learn: 1. C syntax 2. Pointers 3. Pointers declaration 4. Function arguments as pointers 5. Showing output In this tutorial we will use pointers with functions. Using functions with pointers is same as using functions with any normal variable. The only difference comes in the parameter list and sometimes in the return type as well when we return a pointer or an address of a variable. Calculating Average Open Dev C++ then File > new > source file and start writing the code below.

Introduction to Pointers

Introduction to Pointers

In this part you will learn: 1. C syntax 2. Pointers 3. Pointers declaration 4. Showing output

What is a Pointer?

Whenever we declare variable our computer stores it in at a memory location in the memory. A unique address is assigned to every variable made by the user either its on run time or compile time. We use pointers to access those address whenever we want to and use the value that is stored on that particular address. Pointer is a special kind of variable. Pointers are designed to store the memory address i.e.

Learning More About Functions

Learning More about Functions

In this part you will learn: 1. C syntax 2. Functions 3. Function Calling 4. Function definition 5. Function prototype 6. Recursive Functions 7. Showing output

What is Recursion?

Recursion is a process of repeating of items in a self-similar way. A recursive function is a function that calls itself and this technique is known as recursion in C programming.

Introduction to Functions

Introduction to Functions

In this part you will learn: 1. C syntax 2. Functions 3. Function Calling 4. Function definition 5. Function prototype 6. Showing output

What is a Function?

In C, a function is a group of statements that together performs a task. Every C program has at least one function called the ‘main()’ function. It is the heart of the program. Functions divide your code into separate small parts so that the code is easier to understand and easier to write. Each function performs a specific task based on its usage.

Introduction to 2 Dimensional Arrays

2 Dimensional Arrays

In this part you will learn: 1. C syntax 2. 2D arrays 3. Nested for loops 4. Showing output In this tutorial I will teach you about 2D arrays. 2D arrays can be called array of arrays. First we had a single array that was in just one single dimension and we accessed its elements by writing the index in the subscript. In 2d arrays we have arrays that go in both direction.

Introduction to Arrays

Introduction to Arrays

In this part you will learn: 1. C syntax 2. Arrays 3. Showing output In this tutorial I will teach you about Arrays. Arrays are of extreme importance and use in C. Arrays are used when you want to create many variables of the same data type. Like if you want to note the grades of 100 students in a class you cannot take hundred character variables. It will be very lengthy and a not very good code. For this thing we use array. What we do is we just create an array of 100 spaces of character type.