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
main() { int a[5]={1,3,6,7,0}; int *b; b=&a[2]; } The value of b[-1] is

There are two ways for initializes in C++ as shown in the example that follows. The first way uses the traditional C notation. The second way uses constructor notation. int foo

Binary search in array: - C program: Write a program in c to define binary search in array. void main()                 {                 clrscr();

You're going to simulate a metropolitan subway train.  The train system will start out at Station #1, or Home  Station, and will service multiple stations along its route.

write c language program that shows stack overflow..

C program to check display days and month main() {           int months, days;           clrscr();           printf("ENTER DAYS: ");           scanf("%d", &days);

Define Types of storage classes in C language? There are four storage classes in C language: 1. Automatic storage class. 2. External storage class. 3. Register storage cla

submitting solutions in C language should not use functions from / as these files do not exist in gcc

1 PETTERN1 (Pettern1.c)   main() {           int i,j,k=1,a;           clrscr();           for(i=1;i           {                    if(i>=3)

create algorithm for doubly link list using c data structure