Archive for November, 2009
Returning Structure from Functions
November 29, 2009 | Learn C++ | Comments Off
Returning Structure from Functions: Since a structure type data can be passed to a function, a function can also return a structure type data. Usually, the structure type data returned by a function is assigned to a structure ...
Returning Data from Functions
November 29, 2009 | Learn C++ | Comments Off
Returning Data from Functions: A function can return only one value. It can be of any type except string and array. The type of data that a user-defined function returns is declared in function declaration. The value or data i...
Passing Structure to Functions
November 28, 2009 | Learn C++ | Comments Off
Passing Structures to Functions: The structures can also be passed as arguments to a function. If a structure is to be passed to a function, then it must be defined before the declaration of the function that uses the structur...
C++ Array Arguments
November 28, 2009 | Learn C++ | Comments Off
Passing Array as Arguments to a Function: An array variable can also he passed to the function as an argument. When an array is passed to the function only the starting address of the array is passed to the function. The C++ d...
Passing Arguments to Function
November 27, 2009 | Learn C++ | Comments Off
Passing Arguments to Functions: If a function needs data to perform a specific task, this data is provided through the arguments of the function. The arguments are placed in parentheses. The arguments are either constants or v...
Calling a Function
November 22, 2009 | Learn C++ | Comments Off
Calling a Function: Executing the statements of a function to perform a task is called calling of the function. A function is called by referencing its name. The parameters (if any) of the function are given in parentheses aft...
Types of Variables (Continuous and Discontinuous)
November 20, 2009 | Research Methods | Comments Off
Types of Variables (Continuous and Discontinuous): There are many different properties of variables and these properties are based on numerical values we assign them. If the numerical value able to divide in fractions so it may called as continuou...
Function Declaration (Prototype)
November 19, 2009 | Learn C++ | Comments Off
Function Declaration (Prototype): The function declaration is also called prototype. Prototype means sample or model. The function declaration only provides the model of the function. Since function declaration provides the mo...
Functions in C++
November 15, 2009 | Learn C++ | Comments Off
Functions in C++: A function is a set of instructions that are designed to perform a specific task. A function is a complete and independent program. It is executed by the main function or any other function of the program to ...
Array of Pointers
November 13, 2009 | Learn C++ | Comments Off
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 ...