When a function has arguments, it receive any data from the calling function but it returns no values.
Syntax :
Function declaration : void function ( int ); Function call : function( x ); Function definition: void function( int x ) { statements; }
Output:
value of a is 20 value of ar[0] is 10 value of ar[1] is 20 value of ar[2] is 30 value of ar[3] is 40 value of ar[4] is 50 The given string is "Study for future"
No comments:
Post a Comment