parameters (data) between modules, what functions are, and how to use them.


label Programming
account_circle Unassigned
schedule 1 Day
account_balance_wallet $5

  • How parameters¬†are used when calling modules?
Nov 21st, 2017


if you want to use same block of code repeatedly then we use function

function reduce the effort write same code repeatedly. we can just call the function work is done.

for example

int sum( int a , int b ) // It is called function definition 

{ int result ;

result = a + b ;

return result;

}

int main ( void )

{

int sum1 = sum(10,20); // function call

int sum2 = sum(20,20);

int sum3 = sum(30,30);

printf("%d",sum1); // 30

printf("%d",sum2); // 40

printf("%d",sum3); // 60

}


Sep 16th, 2014

Studypool's Notebank makes it easy to buy and sell old notes, study guides, reviews, etc.
Click to visit
The Notebank
...
Nov 21st, 2017
...
Nov 21st, 2017
Nov 22nd, 2017
check_circle
Mark as Final Answer
check_circle
Unmark as Final Answer
check_circle
Final Answer

Secure Information

Content will be erased after question is completed.

check_circle
Final Answer