Have any questions?
[email protected]
English
Vietnamese
French
Spanish
Korean
Japanese
Thai
Chinese
Indonesian
Login
Signup
Contact
Login
Home
What is the default return type of a function?
Question 1:
What is the default return type of a function?
A.
int
B.
void
Feedback
void is the default return value of any function, to handle both empty and non-empty values
C.
float
D.
char
These questions are from this test. Would you like to take a practice test?
C++ Quiz 5 | Englishfreetest.com
20 minutes
10 questions
Do test
Some questions from the same exam
If the user did not supply the value, what value will it take?
Where can the default parameter be placed by the user?
Which value will it take when both user and default values are given?
What we can’t place followed by the non-default arguments?
If we start our function call with default arguments means, what will be proceeding arguments?
What is the default return type of a function?
What will be the output of the following C++ code?
#include
using namespace std;
int func(int m = 10, int n)
{
int c;
c = m + n;
return c;
}
int main()
{
cout << func(5);
return 0;
}
Which operator is having the right to left associativity in the following?
Which operator is having the highest precedence?
What is this operator called ?:?
Some other questions you may be interested in
What is another name for Golgotha, the site where Jesus was crucified?
Name the Roman governor of Judaea who, according to the gospels, authorized the Crucifixion of Jesus.
What nocturnal omnivorous animal is an Australian alternative to the Easter Bunny?
What Easter television special, released in 1971, was based on the novel The Easter Bunny That Overslept?
What jewellery company is famous for designing exquisite jewel-encrusted eggs for the Russian Imperial Court?
According to a tradition among followers of Eastern Christianity, this disciple of Jesus Christ brought cooked eggs at his tomb and they miraculously turned red.