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

Question Description

I’m trying to study for my Programming course and I need some help to understand this question.

  • How parameters are used when calling modules?

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer


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

}


aazam (267)
University of Virginia

Anonymous
The tutor managed to follow the requirements for my assignment and helped me understand the concepts on it.

Anonymous
The tutor was knowledgeable, will be using the service again.

Anonymous
Awesome quality of the tutor. They were helpful and accommodating given my needs.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors