C language provides a capability called ‘array’ that enables the user to design a set of similar data types. Very often, one needs to process collections of related data items, such as the addition of fifty numbers, test scores of students in a university, a set of measurements resulting from an experiment, income tax tables, […]
C
C Jumping Statements
There are three different controls used to jump from one C program statement to another and make the execution of the programming procedure fast. These three Jumping controls are: goto statment break statment continue statment It is also sometimes convenient to be able to exit from a loop other than by testing the loop termination […]
C Looping Statements
When a single statement or a group of statements will be executed again and again in a program (in an iterative way), then such type processing is called loop. These statements are also called Iterative Structure or Program Loop. This allows a sequence of program statements to be executed several times, either a specified number […]
C Branching Statements with Examples
In the term software or computer programming, it has a set of instructions (in simple or complex form) called a program. These instructions are also called statements, which occur sequentially or in either a conditional way or in an iterative way. To handle such types of statements some flow controls are required. These flow controls […]
C Input Output Statements
In C Language input and output function are available as C compiler functions or C libraries provided with each C compiler implementation. These all functions are collectively known as Standard I/O Library function. Here I/O stands for Input and Output used for different inputting and outputting statements. These I/O functions are categorized into three processing […]
C Operators
One reason for the power of C is its wide range of useful operators. An operator is a function that is applied to values to give a result. You should be familiar with operators such as +,-,/. Arithmetic operators are the most common. Others operators are used for comparison of values, a combination of logical […]
Introduction to C Language
As a Programming Language, C is rather like Pascal or Fortran. Values are stored in variables. Programs are structured by defining ad calling functions. Program flow is controlled using loops, if statements and functions calls, Input and Output can be directed to the terminal or to files. Related data can be stored together in arrays […]
C File Input Output
File is not the new concept. File is a more flexible approach than the previous data entry approach. Files are the mega data structure in information processing. Storage of information and its retrieval are the vital components of system design and information system. By using files data can be stored on the disks and can […]
Basics of C Structures
Arrays provide the facility for grouping related data items of the same type into a single object. However, sometimes we need to group related data items of different types. An example is the inventory record of a stock item that groups together its item number, price, quantity in stock, reorder level etc. In order to […]
Pointers in C Programming: What is Pointer, Types & Examples
The significance of pointers in C is the flexibility it offers in the programming. Pointers enable us to achieve parameter passing by reference, deal concisely and effectively either arrays, represent complex data structures, and work with dynamically allocated memory. Although a lot of programming can be done without the use of pointers, their usage enhances […]