Blog Stats
  • Posts - 162
  • Articles - 10
  • Comments - 0
  • Trackbacks - 17

 

Friday, December 29, 2006

C Language - The Preprocessor

In this tutorial you will learn about C Language - The Preprocessor, Preprocessor directives, Macros, #define identifier string, Simple macro substitution, Macros as arguments, Nesting of macros, Undefining a macro and File inclusion.

A unique feature of c language is the preprocessor. A program can use the tools provided by preprocessor to make his program easy to read, modify, portable and more efficient.

C Language - The Preprocessor

C Programming - Dynamic Memory allocation

In this tutorial you will learn about C Programming - Dynamic Memory Allocation, Dynamic memory allocation. Memory allocations process, Allocating a block of memory, Allocating multiple blocks of memory, Releasing the used space and To alter the size of allocated memory.

In programming we may come across situations where we may have to deal with data, which is dynamic in nature. The number of data items may change during the executions of a program. The number of customers in a queue can increase or decrease during the process at any time. When the list grows we need to allocate more memory space to accommodate additional data items. Such situations can be handled move easily by using dynamic techniques. Dynamic data items at run time, thus optimizing file usage of storage space.

C Programming - Dynamic Memory allocation

C Programming - Pointers

In this tutorial you will learn about C Programming - Pointers, Pointer declaration, Address operator, Pointer expressions & pointer arithmetic, Pointers and function, Call by value, Call by Reference, Pointer to arrays, Pointers and structures, Pointers on pointer.

In c a pointer is a variable that points to or references a memory location in which data is stored. Each memory cell in the computer has an address that can be used to access that location so a pointer variable points to a memory location we can access and change the contents of this memory location via the pointer.

C Programming - Pointers

Programming - Structures and Unions

In this tutorial you will learn about C Programming - Structures and Unions, Giving values to members, Initializing structure, Functions and structures, Passing structure to elements to functions, Passing entire function to functions, Arrays of structure, Structure within a structure and Union.

Arrays are used to store large set of data and manipulate them but the disadvantage is that all the elements stored in an array are to be of the same data type. If we need to use a collection of different data type items it is not possible using an array. When we require using a collection of different data items of different data types we can use a structure. Structure is a method of packing data of different types. A structure is a convenient method of handling a group of related data items of different data types.

C Programming - Structures and Unions

 

 

Copyright © John Jacob