Answer:
10
Explanation:
This for-loop is simply iterating three times in which the value of x is being set to the value of x * 1. So let's perform these iterations:
x = 10
When i = 0
x = x * 1 ==> 10
When i = 1
x = x * 1 ==> 10
When i = 2
x = x * 1 ==> 10
And then the for-loop terminates, leaving the value of x as 10.
Hence, the value of x is equal to 10.
Cheers.
Answer:
an error message
Explanation:
The return value is the value which is sent back by the function to a place in the code from where the was called from. Its main work is to return a value form the function.
In the context, the form of "(symbol-length? 'James)" in Scheme will return the value --- ' an error message'.
Answer:
scope
Explanation:
Destructor is a member function and it call automatically when the class object goes out of scope.
Out of scope means, the program exit, function end etc.
Destructor name must be same as class name and it has no return type.
syntax:
~class_name() { };
For example:
class xyz{
xyz(){
print(constructor);
}
~xyz(){
print(destructor);
}
}
int main(){
xyz num;
}//end program
when the object is create the constructor will called and when the program end destructor will call automatically.
Answer:
force and a single particla of matter
Answer:
nothing
Explanation:
Because the return type of the function is void. void means does not return any thing.
The syntax of the function:
type name( argument_1, argument_2,......)
{
statement;
}
in the declaration the type define the return type of the function.
it can be int, float, double, char, void etc.
For example:
int count( int index);
the return type of above function is int. So, it return integer.
similarly,
void count(int index);
it return type is void. So, it does not return any thing.