Function Return Values Flashcards

1
Q

Returning a value back to a caller

A
  • your function has to indicate the type of value being returned
  • ypu have to use a return statetment to indicate specific value returned
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Indicating type of value to be returned

A

Setting the function’s return type, which is the type defined before the functions name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

The return value

A

Specific value returned from a function

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Return by value

A

Process when the return value is copied from the function back to the caller

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Void return values

A

Type of value we use when the function does not need to return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Use of void return values

A

When we want to have a function that does not return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Return to main

A

When a program is executed, the operating system makes a function call to main, returns value 0 and it must return integer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Status code

A

The value that is returned back to the operating system telling whether the program is executed successfuly

How well did you know this?
1
Not at all
2
3
4
5
Perfectly