Breaking News

C Tutorial

C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. … This tutorial is designed for software programmers with a need to understand the C …

Pointer & Array

Pointers and arrays are very closely linked in C. Hint: Think of array elements arranged in consecutive memory locations. Consider the following: int a[10], x; int *pa; pa = &a[0]; /* pa pointer to address of a[0] */ x …

Read More »

Arrays of Pointer

We can have arrays of pointers since pointers are variables. Example use: Sort lines of text of different length. Note: Text can’t be moved or compared in a single operation. Arrays of Pointers are a …

Read More »

Introduction To Union

Union are derived data types, the way structure are. Though, unions and structures look alike, and there is a fundamental difference. While structure enables you to create a number of different variables stored in difference …

Read More »

Accessing a union member

To access a union member, you can use the same syntax that you use for structure members. Example: code.m, code.x etc. During execution, we should make sure that the value of accessing member is currently …

Read More »

Uses of Union

Union, like structure, contain members whose individual data type may differ to each other. But the members that compose a union share the same storage area within the computer’s memory, whereas each member within a …

Read More »

Command line parameter of C

You may have been wondering about the empty parentheses in the first line of the main function, i.e. main(). The parentheses may contain special arguments that allow parameters to be passed to main from the operating system. Most versions of C permit …

Read More »

What is Header file?

The C provides a large number of C functions as libraries. Some of these implement frequently used operations, while others are very specialized in their application. Wise programmers will check whether a library function is …

Read More »

Use of library functions

To use a function, ensure that you have made the required #includes in your C file. Then the function can be called as though you had defined it yourself. It is important to ensure that …

Read More »

Some Useful library functions

There is a vast collections of function .Some of them are grouped together and listed below. String Function: strcpy copies one string into another. strcat appends one string to another. strcmp compare one string to …

Read More »

Introduction C Preprocessor & Macro

The C preprocessor is a tool which filters your source code before it is compiled. The preprocessor allows constants to be named using the # notation. The preprocessor provides several other facilities which will be described here. It is particularly useful for selecting …

Read More »