• retagged by
1,422 views

3 Answers

2 2 votes
Option d.

If the function is any integer type, or float or char. Return is used.

If the function is void type then no need to use any return type keyword.
0 0 votes

The correct answer is D) return.

In most programming languages, like C, C++, Java, etc. the keyword "return" is used to transfer control from a function back to the calling function. It also allows sending a value back to the calling function. The other options (switch, go to, go back) are not used for this purpose.

Answer:
Position:
Show:

Related questions

2 2 votes
3 3 answers
7.7k
7.7k views
admin asked Mar 31, 2020
7,727 views
The maximum combined length of the command-line arguments including the spaces between adjacent arguments is:$128$ characters$256$ characters$67$ charactersIt may very fr...
4 4 votes
6 6 answers
2.3k
2.3k views
admin asked Mar 31, 2020
2,294 views
What is the meaning of following declaration?int(*p[7])();$p$ is pointer to function$p$ is pointer to such function which return type is array$p$ is array of pointer to f...
2 2 votes
5 5 answers
1.8k
1.8k views
admin asked Mar 31, 2020
1,836 views
How will you free the allocated memory?remove(var-name)free(var-name)delete(var-name)dalloc(var-name)
0 0 votes
1 1 answer
7.5k
7.5k views
admin asked Mar 31, 2020
7,472 views
Given a class named student, which of the following is a valid constructor declaration for the class?Student student(){}Private final student(){}Student(student s){}Void ...