Demonstraction of function call : Function « Function « C / ANSI-C

Home
C / ANSI-C
1.assert.h
2.Console
3.ctype.h
4.Data Structure Algorithm
5.Data Type
6.Development
7.File
8.Function
9.Language Basics
10.Macro Preprocessor
11.Math
12.math.h
13.Memory
14.Pointer
15.setjmp.h
16.signal.h
17.Small Application
18.stdio.h
19.stdlib.h
20.String
21.string.h
22.Structure
23.time.h
24.wctype.h
C / ANSI-C » Function » FunctionScreenshots 
Demonstraction of function call

void f2(void){
   printf ("2 \n");
   
}

void f1 (void) {
  printf ("1 \n");
  printf ("1 \n");
  f2 ( );
  printf ("1 \n");
  printf ("1 \n");
}


int main ( )
{
  printf ("\n");
  printf ("\n");
  printf ("\n");
  printf ("\n");
  printf ("\n");
             f1();
  printf ("\n");
  printf ("\n");
  printf ("\n");
  printf ("\n");

    return 0;
}


           
       
Related examples in the same category
1.Define function to sum
2.Definition of the function to calculate an averageDefinition of the function to calculate an average
3.Function call
4.Check out the int value change before and after function callCheck out the int value change before and after function call
5.Define function to multiply two int
6.Uses a function prototype to enforce strong type checking
7.Serve as a prototype within this program
8.Define function and use it: square
9.Function: Print a string in uppercase
10.A program with two functions
11.This program has three functions
12.Define function and use it
13.Return statement
14.Assign function return value to a variable
15.A simple program that demonstrates sum()
16.Define function to output char
17.Function to output square
18.Define two functions and call them in main
19.Function which returns int value
20.Define function with void return
21.Define function to calculate the ounces and cups
22.Function declaration
23.Define function to calculate the volumn
24.Function prototype: declare getnum() prior to its first use
25.Define function and return value
26.Define function with parameter and return value
27.Function call each other
28.Define two functions and make function call
29.Global and local variable inside function
30.Function prototype
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.