Important Notice:

Course Content
Building IoT Applications (Chapter-4) M4-R5.1
About Lesson

PARAMETERS :

          There are 2 types of parameters:

a. Actual Parameters.

b. Formal Parameters.

 

a. Actual Parameters:

         These are the parameters which are used in main() function for function calling.

Syntax: <variable name>=<function name><actual argument>

Example: f=fact(n);

 

b. Formal Parameters

             These are the parameters which are used in function definition for processing.

Ex : main()

{

fun1( a , b ); //Calling function

}

fun1( x, y ) //called function

{

. . . . . .

}

Where

a, b are the Actual Parameters

x, y are the Formal Parameters

Methods of parameters passing:

1. Call by reference.

2. Call by value.

error: Content is protected !!