Answer:
b. The function will execute slowly because "val", and the return value of the function will both require a lot of data copying. This is because C is call-by-value.
Explanation:
Given Function signature: struct x_struct my_function( struct x_struct val );
The function my_function takes a structure of type struct x_struct as arguments and returns a structure of the same type.
C make use of call by value. So it will involve a copy of the struct argument and the return value as part of function execution. This will slow down the speed of execution particularly if the size of the structure is large.So option b is the correct option.
They do it because they want people to experience new rides, instead of the same old boring rides they’ve been on several times.
Answer: False
Explanation:
The given statement is false, as it is not compulsory that the default case is require in switch selection statement. If the default case are not properly specified in the statement then, there will be no execution occur in the switch selection statement.
It is sometimes good to have default case in switch selection statement, but it is not mandatory. The default case only executed when the correct case is present and none of the case matches in the given statement.