Hierarchy of Operations in C

C Programming Tutorial

While executing an arithmetic statement, which has two or more operators, we may have some problems as to how exactly does it get executed. For example, does the expression 2 * x – 3 * y correspond to (2x)-(3y) or to 2(x-3y)? Similarly, does A / B * C correspond to A / (B * … Read more

Integer and Float Conversions in C

C Programming Tutorial

In order to effectively develop C programs, it will be necessary to understand the rules that are used for the implicit conversion of floating point and integer values in C. These are mentioned below. Note them carefully. An arithmetic operation between an integer and integer always yields an integer result. An operation between a real … 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

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