C Instructions

C Programming Tutorial

We have seen the first c program, Now let us look at the instructions that we used in these programs. There are basically three types of instructions in C: Type Declaration Instruction – To declare the type of variables used in a C program. Arithmetic Instruction – To perform arithmetic operations between constants and variables Control Instruction … Read more

Scanf() : Receiving input in C program

C Programming Tutorial

In the First C Program discussed earlier (same has been also mentioned below for the reference) we assumed the values of p, n and r to be 1000, 3 and 8.5. Every time we run the program we would get the same value for simple interest. If we want to calculate simple interest for some other … Read more

Compilation and Execution of C Program

C Programming Tutorial

Once you have written the program you need to type it and instruct the machine to execute it. To type your C program you need another program called Editor. Once the program has been typed it needs to be converted to machine language (0’s and 1’s) before the machine can execute it. To carry out … Read more

The First C Program

C Programming Tutorial

we would write our first C program now. Once we have done that we would see in detail the instructions that it made use of. Before we begin with our first C program do remember the following rules that are applicable to all C programs: Each instruction in a C program is written as a … Read more

Types of C Variables

C Programming Tutorial

An entity that may vary during program execution is called a variable. Variable names are names given to locations in memory. These locations can contain integer, real or character constants. In any language, the types of variables that it can support depend on the types of constants that it can handle. This is because a particular type … Read more

Types of C Constant

C Programming Tutorial

C constants can be divided into two major categories: Primary Constants:  Secondary Constants: At this stage we would restrict our discussion to only Primary Constants, namely, Integer, Real and Character constants. Let us see the details of each of these constants. For constructing these different types of constants certain rules have been laid down. These … Read more

The C Character Set : Constants, Variables and Keywords

C Programming Tutorial

A character denotes any alphabet, digit or special symbol used to represent information. Here is the list of valid character set (Alphabets, Numbers and Symbols) allowed in C. The alphabets, numbers and special symbols when properly combined form constants, variables and keywords. Let us see what are ‘constants’ and ‘variables’ in C. Constant and Variable … Read more

let us C : Start Learning C Programming

C Programming Tutorial

Before we can begin to write serious programs in C, it would be interesting to find out what really is C, how it came into existence and how does it compare with other computer languages. In this chapter we would briefly outline these issues. We will also learn four important aspects of any language are … Read more