Function with arguments and return value
In this section function takes arguments and returns some value.
Syntax :
In this section function takes arguments and returns some value.
Syntax :
Function declaration : int function ( int ); Function call : function( x ); Function definition: int function( int x ) { statements; return x; }
Output:
value of a is 40 value of arr[0] is 60 value of arr[1] is 70 value of arr[2] is 80 value of arr[3] is 90 value of arr[4] is 100
No comments:
Post a Comment