Question: 1 . a The following question concerns the C language. i . The C programming language supports the use of functions. Provide 3 benefits that
a The following question concerns the language.
i The programming language supports the use of functions. Provide benefits that arise from structuring your programs using functions.
Marks
ii Functions can return a range of different types. Provide one example of a valid return type and one example of an invalid return type.
Marks
b For each of the following statements about functions in C briefly state whether they are true or false and provide a brief explanation or clarification as appropriate:
i Functions can return multiple values.
ii C passes parameters by reference.
iii. Inside your main function you can always access variables declared inside any other functions in the program.
iv If you do not declare a return type for a function it will default to void.
v Both int main and int mainint argc, char argv are valid headers for the main function.
Marks
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
