C Tutorial

C Programming Tutorial
C Programming Tutorial

Welcome to the C Knowledge Base and Tutorial

 

a program to read the data for the customer, calculate the interest and service charge, and print the customer’s name, average balance, interest, and service charge.

//calculate interest and service charge for bank customer #include <stdio.h> int main() { char customer[30], acctNum[30]; double avgBalance, interest, service;
Read More »

Escape Sequences

Within the string argument to printf, the backslash (\) signals that a special effect is needed at this point. The
Read More »

how to run C Program in ubuntu

Step 1. Open text editor. Step 2. Write a Program. Step 3. Save the program with the extension .C .
Read More »

Arrays of Structures & Unions in C

Since structures are data types that are especially useful for creating collection items, why not make a collection of them
Read More »

Union: Accessing Union Members & Nesting in C

To access union members we can use dot operator (.) between union variable and union member name as follows: <Union-Variable-Name>.<MemberAddress>
Read More »

Union: Definition, Declaration & Initialization in C

Union, is a collection of variables of different types, just like a structure, however a union can only store information
Read More »

Nesting of Structures in C

A Structure can contain other Structure variables as members. This is called Nesting of Structures. For example address structure is
Read More »

Initialization & Accessing Structure Members in C

C programming language treats a structure as a user-defined data type; therefore you can initialize a structure like a variable.
Read More »

Structure Declaration in C

The first way is to declare a structure variable immediately after the structure definition, as follows: struct address { int
Read More »

Structure Definition - C Programming

In some programming contexts, you need to access multiple data types under a single name for easier data manipulation; for
Read More »

Structures & Unions in C

Arrays provide a mechanism to declare a derived data type which is a collection of homogenous elements. This means each
Read More »

Multi-Dimensional Array in C

C does not have true multidimensional arrays. However, because of the generality of C’s type system; we can have arrays
Read More »

Two-Dimensional Array in C

The array which is used to represent and store data in a tabular form is called as Two Dimensional Array.
Read More »

One Dimensional Array in C

The array which is used to represent and store data in a linear form is called as Single or One
Read More »

Concept of Array in C

In C programming language, a derived data type which can store a collection of elements of the same data type
Read More »

Older Entries » For any query or issue, feel free to discuss on http://discuss.eduguru.in