Nested Structure

admin » Dec 30th, 2009
Nested Structure
Nested Structure: When members of a structure are defined as structure type, these are called nested structures. For example: struct info { char s_name[15]; char f_name[15] ; char city[15] ; int age; }; struct p_data { info s1; info s2; float x; }; p_data rec; In the above example, info structure... 
Continue Comments Off
Structure Variables as Arrays
Structure Variables as Arrays: A structure variable may also be declared as an array. This is done to manage a large number of records. Each variable of the array represents a complete record. For example, in the following example the structure variable arts are of array type. It contains 10 elements. Each element... 
Continue Comments Off
Array Type Members of Structures
Array Type Members of Structures: The members of structure may be of different types. These can also be simple variables or array variables. For example, in the following structure, the member “sub” is an array of int type. It has four elements. The member “name” is of string type and a string is also an array. struct... 
Continue Comments Off
Initialization of Structure Variables
Initialization of Structure Variables: The values into a structure variable can be assigned when it is declared. It is called initialization of the structure variable. To initialize a structure variable, data is assigned to the members of the structure. To assign data to the members of the structure, the data items... 
Continue Comments Off

Structure Variable

admin » Dec 15th, 2009
Structure Variable
Structure Variables: A structure is a collection of data items or elements. It is defined to declare its variables. These are called structure variables. A variable of structure type represents the members of its structure. When a structure type variable is declared, a space is reserved in the computer memory to... 
Continue Comments Off

C++ Structures

admin » Dec 14th, 2009
C++ Structures
C++ Structures: A structure is a collection of related elements or data items. The elements of the structure are called members of the structure. A structure is unlike an array. All elements in an array are of the same type. But in structures, the elements can be of different types. The syntax of a structure is very... 
Continue Comments Off
Built-In Function of Math
Built-In Function of Math: The functions that are used to perform mathematical calculations are defined in “math.h” header file. The commonly used math library functions are discussed below. The “pow” Function: It is used to calculate the exponential power of a given integer number. Its syntax is: pow (x... 
Continue Comments Off
Built-In Function of String
Built-In Functions of String: The “string.h” header file contains the functions that are used to process strings. The commonly used functions of this header file are given below. The “strlen” Function: The “strlen” stands for string length. This function is used to find the length of a string. It counts... 
Continue Comments Off
Standard Input and Output Functions C++
Standard Input and Output Functions C++: The “stdio” stands for standard input/output. This header file contains a large number of standard Input and Output functions that are used to get input from tile input devices and also to print results on output devices. The commonly used functions of this header file... 
Continue Comments Off
Common C++ Built-In Functions
Common C++ Built-in Functions: The commonly used built-in functions are discussed below: The “conio.h” Function: The “conio.h” stands for console input/output. This header file contains basic input & output functions that are used to get data from the keyboard and to send results from the memory to the... 
Continue Comments Off
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Copyright © 2010 Information Village. All rights reserved.