Functions, C/C++ Programming

Define Function? There are two types of function built-in functions and user-defined functions.   Built-in functions are the function within C++ like main, setw, sqrt,  etc.  User-defined functions are the functions produced by the user or the programmer for a specific job.  The advantage of producing function is it reduces program size, easy to maintain and modify.   Only the statements called within the main function will be executed.

The use-defined  function must have  a prototype  (declaration) before it can be called

except for inline function. There are other functions like friendly function and virtual function which will be discussed later.

Posted Date: 9/20/2012 7:44:59 AM | Location : United States







Related Discussions:- Functions, Assignment Help, Ask Question on Functions, Get Answer, Expert's Help, Functions Discussions

Write discussion on Functions
Your posts are moderated
Related Questions
Problem: (a) Describe a linked list. (b) Explain the three different types of linked list with the help of diagrams. (c) Give two advantages and two disadvantages o

Program to Open a file in C++: int main() {                  char ch;                  ifstream f1 ("OLDFILE.TXT");                  ofstream f2 ("NEWFILE.TXT");

A container class is a class which is used to hold objects in external storage and memory. A container class work as a generic holder. A container class contains a predefined behav

Is it legal for a member function to say delete this? A: As long as you're cautious, it's OK for an object to delete this. Here's how I define "cautious": You have to be a

write a program that declares and initializes 2 integer variable a and b with the value 35 and 14, and displays and calculates their sum,product,quotient and real division result.t

Write C code for a program that implements a digital clock (HH:MM:SS). The clock includes a two-digit hour indicator HH (00-23), a two-digit minute indicator MM (00-59), and a t

¦It should ask customers to enter details such as their names and addresses. ¦It should print a welcome message that includes the customer’s name. ¦It should provide a list of avai

THIS PROGRAM IS TO MULTIPLY THE TWO COMPLEX NO.S GIVEN BY THE USER #include #include #include struct complex     {     int real;     int imag;     }; void main()  {  clrs

write a c++ program for pebble merchant

how to fill the blank space in4*4 matrix?