¤ Home » Programming » C Tutorial

C Tutorial

You may be wondering why we have introduced a section on C. A question that I am often asked by budding programmers is – after the advent of object oriented programming languages such as JAVA, PHP and C++, do we really need to learn C anymore?

The answer is YES.

Before you begin learning object oriented programming (OOP), you must understand fundamentally how programs are structured. The most structured programming language till date is C and hence, C is a natural choice to begin taking your initial steps towards programming. If you aim to become a master programmer, you must first master C and then move to learning an object oriented language. It will become easier to understand the concepts of OOP once you have mastered C.




12FEB2016

Project work on C file handling

11FEB2016

Sample programs on file handling

06FEB2016

Structure based I/O functions - fread, fwrite

02FEB2016

String I/O functions - fscanf, fprintf

30JAN2016

String I/O functions - fgets, fputs

16JAN2016

Various Read-Write functions available in C for reading and writing on to files. Understanding character I/O functions - fgetc, fputc

07JAN2016

This is the first article of the series of articles on file handling in C. In this article you will get an overview of how files are handled in C and understand the basic concept involved.

01JUN2014

In this article we will learn how to build a singly linked list while maintaining the data in a sorted order.

31MAY2014

In this article you will learn how to define self referential data structure. You will learn how to create and manipulate a linear linked list using the concept of self-referential data structure.

01MAY2014

In this article on C structures, you will learn how to pass structure as parameter to a function.

26APR2014

In this article you will learn how to define union data types and use unions in a C program.

25APR2014

In this article on structures, you will learn how to define pointer to a structure and access structure elements using pointer.

23APR2014

In this article you will learn how to represent composite data using structures; how to declare a structure variable and access its members; how to read, display, and manipulate structure data; and how to deal with array of structures.

04APR2014

Usage of pointers to pass a function as parameter to another function.

02APR2014

Using command line arguments in C. Learn how to pass parameters to function main().

01APR2014

Passing pointers to a function.

28MAR2014

Pointer to a function. Learn how to implement call by reference scheme of parameter transfer using pointers.

27MAR2014

Array of Pointers.

26MAR2014

Pointer to two dimensional Arrays. Learn to create and manipulate two dimensional arrays using pointers.

25MAR2014

Pointer to a one dimensional character string. Learn how to handle character strings using pointers.

24MAR2014

Dynamic memory allocation and de-allocation using malloc & free functions. Usage of pointers to create and manipulate arrays.

23MAR2014

Basic introduction to pointers in C. Understand how to declare and use a pointer variable and what are the basic arithmetic operations you can perform with pointers.

14MAR2014

Learn how to define and work with multi-dimensional arrays in C. Learn how to represent a list of strings as a 2-dimensional character array. Also understand how multi-dimensional arrays are passed to a function.

09MAR2014

In this series of 2 articles on arrays we will learn how to declare arrays and define their storage representation. Topics covered include - how to read data into an array, how to manipulate & print array elements, how to implement array representation of character strings, how to sort data stored in one dimensional arrays, how to handle multidimensional arrays, and how to pass array as parameter to function.

07MAR2014

In this article we will understand how to create your own data types in C. We will also learn about enumerated and boolean data types.

05MAR2014

In this last article in the 5 article series on functions, we will learn how to pass parameters from the calling to the called function. We will learn how to establish the correspondence among formal and actual parameters, and also understand classification of call by value and call by reference schemes for parameter transfer.

04MAR2014

This fourth article on functions explains the concept of scope of variables in C. Learn how and where to declare local and global variables. Learn about C storage class.

01MAR2014

This third series of five articles, covers - what are recursive functions and how to implement recurrence relations in C. It also takes a look at the merits and demerits of a recursive function call.

28FEB2014

In this article we will understand the concept of sequencing of function calls in C, by demonstrating a simple implementation scheme for sub-program sequence control.

27FEB2014

Topics covered – Introduction to functions in C, understand how functions are defined in C, their broad constructs and invocation of a function from another function. Also understand function parameters and how to differentiate between formal and actual parameters of a function.

26FEB2014

In this post you will understand how C handles repetitive statements and what are the various constructs available for loop control. We will deal with while, do-while and for loops. We will also take a look at how to implement nested loops.

21FEB2014

A program cannot always be a sequential set of statements consisting of only assignment and input-output statements. While developing programs to solve any problem, it is often necessary to carry out a logical test and depending upon the outcome, a separate course of action is taken. Like most programming languages, C supports such conditional execution with the help of if..else and switch..case statements.

16FEB2014

How a C program handles input-output of data? Learn how to read user inputs provided at the standard input device, and how to send data output to the standard output device.

11FEB2014

In this article we will understand the necessity of preprocessor directives in C. We will discuss how to use #define and #include directives.

10FEB2014

Learn about the various operators used in the C programming language and how to use them in your C programs. Topics covered – arithmetic operators, assignment operator, increment/decrement operators, conditional operators, relational & logical operators, type conversion and operator precedence.

08FEB2014

Get an overview of the structure of a C program.

07FEB2014

In this article you will learn about - the character set used in C language, keywords/reserved words in C, and the rules for naming identifiers. We will also look at the basic data types and how data objects are declared. We will also be looking at constants in C, and how they are specified.

06FEB2014

Download the ANSI C Compiler from here to test all the codes which are provided in this section.

05FEB2014

An introduction to the C programming language and its history.



Buy Domain & Hosting from the most reliable and trusted company - WebServicesWorldWide.com.

Looking to build a website?
Launch a 20 page website in 1 day at only Rs.200/month or US$ 3.19/month. Hosting & Email included.





Copyright © How2Lab.com. All rights reserved.

Refer a friend | Sitemap | Disclaimer | Privacy Policy