Home » Archives for November 13th, 2009

Array of Pointers

Array of Pointers
Array of Pointers:   Pointer variables may also be declared as an array.   When an array of strings is declared without using a pointer then each element of the array has a fixed length. If the string entered is shorter than the length of the element, then the remaining space of the element cannot be used. Thus memory space is wasted. To solve this problem, the array of strings is declared by using... 

Variables

Variables
Variables: The central idea in research is variable. Variable is simply defined that it is a concept that varies. There are two types of concepts, 1) those that refer with a fixed phenomenon; and 2) those that can vary by quantity or amount. The measures of concept and second type of concept are variables. Anything that varies or changes in value is called variable. It can take two or more values because... 

Pointers and Strings

Pointers and Strings
Pointers and Strings:   A string is a sequence of characters. A string type variable is declared in the same manner as an array type variable is declared. This is because a string is an array of character type variables.   Since a string is like an array, pointer variables can also be used to access it. For example:   char st1[ ] = “Pakistan”; char *st2 = “Pakistan”;   In the above statements,... 

Pointers and Arrays

Pointers and Arrays
Pointers and Arrays:   There is a close relationship between pointers and arrays. In advanced programming, arrays are accessed using pointers. An array consists of consecutive locations in the computer memory. To access an array, the memory location of the first element of the array is accessed using the pointer variable. The pointer is then incremented to access other elements of the array. The pointer... 
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Copyright © 2010 Information Village. All rights reserved.