C - Programming Articles

Control Statements in C Language

A program consists of a number of statements which are usually executed in sequence. Programs can be much more powerful if we can control the order in which statements are run. Statements fall into three general types: Assignme ...

0 Comments. 2935 views since Jun 16, 2008

Preprocessor Directives in C

The preprocessor is a program that is invoked by the compiler to process code before compilation. Commands for that program, known as directives, are lines of the source file beginning with the character #, which distinguishes them from lines of source ...

1 Comments. 2461 views since Feb 24, 2009

SKTN Solutions for C Part 1

Introduction For a long time, I was pressurized to teach C to my friends and colleagues. As due to my busy schedule, this was not feasible. So, I decided to throw light on the solutions of the problems everyone faces in the learning phase of ...

0 Comments. 2398 views since Sep 26, 2007

SKTN Solutions for C Part 2

Introduction The tutorial series "SKTN Solutions for C" is continued with this tutorial. In this part 2 of the series, we will take a little bit more challenging problems are taken. I hope you will enjoy. So, let us once again delve ...

0 Comments. 2141 views since Sep 27, 2007

Pointers in C

General Definition Pointer is a variable that contains the address of any other variable. Means it may contain the address of integer, character, double and it can also contain the address of user define data type means structure also. < ...

0 Comments. 2102 views since Oct 12, 2007

About C

About C As a programming language, C is rather like Pascal or Fortran. Values are stored in variables. Programs are structured by defining and calling functions. Program flow is controlled using loops, if statements and function calls. Input ...

1 Comments. 1909 views since Sep 12, 2007

SKTN Solutions for C Part 4

Introduction The tutorial series &quot;SKTN Solutions for C&quot; is again continued with this tutorial. In this part 4 of the series, we will be discussing recursion related problems. As it seems to most of us that recursion is somewhat diff ...

0 Comments. 1738 views since Oct 1, 2007

SKTN Solutions for C Part 3

Introduction The tutorial series &quot;SKTN Solutions for C&quot; is again continued with this tutorial. In this part 3 of the series, we will take a different set of problems generally using loops. These problems may seem easy at first glanc ...

0 Comments. 1732 views since Sep 28, 2007

Constant Correctness in C

Constant correctness means the right use of const keyword in 'c' code. If we properly use this keyword it will give right result, otherwise it cause errors. It will not affect the runtime. It will cause only Compile time error. It is necessary ...

0 Comments. 1657 views since Oct 1, 2007

Structure & Unions in C

Array can be used to represent a group of data items that are of same data type such as integer, character, float etc. But if we want to store different types of data items then we can not use an array. 'C' supports a constructed data type called 'stru ...

0 Comments. 1644 views since Oct 7, 2007

C Plus Plus Questions Part 1

Note: All the programs are tested under Turbo C++ 3.0, 4.5 . It is assumed that, Programs run under Windows environment, Program is compiled using Turbo C/C++ compiler. The program output may depend on the ...

0 Comments. 1503 views since Sep 28, 2007

Functions & Pointers in C Language

Almost all programming languages have some equivalent of the function. You may have met them under the alternative names subroutine or procedure. Some languages distinguish between functions which return variables and those which don't. C assumes that ...

0 Comments. 1314 views since Jun 16, 2008

Variables in C Language

Variables In C, a variable must be declared before it can be used. Variables can be declared at the start of any block of code, but most are found at the start of each function. Most local variables are created when the function is called, an ...

0 Comments. 1198 views since Jun 16, 2008

Expressions and Operators in C Language

One reason for the power of C is its wide range of useful operators. An operator is a function which is applied to values to give a result. You should be familiar with operators such as +, -, /. Arithmetic operators are the most common. Other o ...

0 Comments. 1195 views since Jun 16, 2008