Home » Archives for November 29th, 2009

Returning Structure from Functions

Returning Structure from Functions
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 type variable. For example: Program:   # include <iostream.h> # include <conio.h> # include <stdio.h> struct temp { char mn[12]; float... 

Returning Data from Functions

Returning Data from Functions
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 is returned from the function to the calling function by the “return” statement.   Return Statement:             The “return” statement... 
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
Copyright © 2010 Information Village. All rights reserved.