132k views
1 vote
What is the purpose of a return statement?

a
to pass a value from inside a function to the main program

b
to print a value to the user

c
to go back to the beginning of a loop

d
to begin printing on a new line

User Jarin Udom
by
3.4k points

2 Answers

12 votes

/|___{A is the answer}___|\

User Rowanto
by
3.3k points
8 votes

What is the purpose of a return statement?

a - to pass a value from inside a function to the main program

User Influjensbahr
by
3.7k points